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:
Anbraten
2023-11-03 11:44:03 +01:00
committed by GitHub
parent 4c4fdff5f7
commit 5ff006614f
55 changed files with 912 additions and 342 deletions

View File

@@ -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