mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-03-16 17:54:07 +01:00
Enhance linter and errors (#1572)
Co-authored-by: 6543 <m.huber@kithara.com> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
@@ -52,15 +52,15 @@ func ValidateWebhookEvent(s WebhookEvent) error {
|
||||
type StatusValue string // @name StatusValue
|
||||
|
||||
const (
|
||||
StatusSkipped StatusValue = "skipped"
|
||||
StatusPending StatusValue = "pending"
|
||||
StatusRunning StatusValue = "running"
|
||||
StatusSuccess StatusValue = "success"
|
||||
StatusFailure StatusValue = "failure"
|
||||
StatusKilled StatusValue = "killed"
|
||||
StatusError StatusValue = "error"
|
||||
StatusBlocked StatusValue = "blocked"
|
||||
StatusDeclined StatusValue = "declined"
|
||||
StatusSkipped StatusValue = "skipped" // skipped as another step failed
|
||||
StatusPending StatusValue = "pending" // pending to be executed
|
||||
StatusRunning StatusValue = "running" // currently running
|
||||
StatusSuccess StatusValue = "success" // successfully finished
|
||||
StatusFailure StatusValue = "failure" // failed to finish (exit code != 0)
|
||||
StatusKilled StatusValue = "killed" // killed by user
|
||||
StatusError StatusValue = "error" // error with the config / while parsing / some other system problem
|
||||
StatusBlocked StatusValue = "blocked" // waiting for approval
|
||||
StatusDeclined StatusValue = "declined" // blocked and declined
|
||||
)
|
||||
|
||||
// SCMKind represent different version control systems
|
||||
|
||||
Reference in New Issue
Block a user