gitsources: add commit status of type `error`
This commit is contained in:
parent
81d557d785
commit
2d6ddd0e74
|
@ -69,6 +69,8 @@ func fromCommitStatus(status gitsource.CommitStatus) gitea.StatusState {
|
|||
return gitea.StatusPending
|
||||
case gitsource.CommitStatusSuccess:
|
||||
return gitea.StatusSuccess
|
||||
case gitsource.CommitStatusError:
|
||||
return gitea.StatusError
|
||||
case gitsource.CommitStatusFailed:
|
||||
return gitea.StatusFailure
|
||||
default:
|
||||
|
|
|
@ -63,6 +63,8 @@ func fromCommitStatus(status gitsource.CommitStatus) gitlab.BuildStateValue {
|
|||
return gitlab.Pending
|
||||
case gitsource.CommitStatusSuccess:
|
||||
return gitlab.Success
|
||||
case gitsource.CommitStatusError:
|
||||
return gitlab.Failed
|
||||
case gitsource.CommitStatusFailed:
|
||||
return gitlab.Failed
|
||||
default:
|
||||
|
|
|
@ -27,6 +27,7 @@ type CommitStatus string
|
|||
const (
|
||||
CommitStatusPending CommitStatus = "pending"
|
||||
CommitStatusSuccess CommitStatus = "success"
|
||||
CommitStatusError CommitStatus = "error"
|
||||
CommitStatusFailed CommitStatus = "failed"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue