diff --git a/cmd/server/openapi/docs.go b/cmd/server/openapi/docs.go index 918e208cb..8482ed395 100644 --- a/cmd/server/openapi/docs.go +++ b/cmd/server/openapi/docs.go @@ -5557,11 +5557,11 @@ const docTemplate = `{ "StatusKilled": "killed by user", "StatusPending": "pending to be executed", "StatusRunning": "currently running", - "StatusSkipped": "skipped as another step failed", + "StatusSkipped": "skipped as per condition of current workflow failed/success state", "StatusSuccess": "successfully finished" }, "x-enum-descriptions": [ - "skipped as another step failed", + "skipped as per condition of current workflow failed/success state", "pending to be executed", "currently running", "successfully finished", diff --git a/server/model/const.go b/server/model/const.go index 124f07d7f..2648b7971 100644 --- a/server/model/const.go +++ b/server/model/const.go @@ -55,7 +55,7 @@ func (s WebhookEvent) Validate() error { type StatusValue string // @name StatusValue const ( - StatusSkipped StatusValue = "skipped" // skipped as another step failed + StatusSkipped StatusValue = "skipped" // skipped as per condition of current workflow failed/success state StatusPending StatusValue = "pending" // pending to be executed StatusRunning StatusValue = "running" // currently running StatusSuccess StatusValue = "success" // successfully finished diff --git a/web/src/assets/locales/en.json b/web/src/assets/locales/en.json index 9d7020761..32378f7ed 100644 --- a/web/src/assets/locales/en.json +++ b/web/src/assets/locales/en.json @@ -224,6 +224,7 @@ "cancel": "Cancel", "restart": "Restart", "canceled": "This step has been canceled.", + "skipped": "This step has been skipped.", "cancel_success": "Pipeline canceled", "deploy": "Deploy", "restart_success": "Pipeline restarted", @@ -258,6 +259,7 @@ "running": "running", "started": "started", "skipped": "skipped", + "canceled": "canceled", "success": "success", "declined": "declined", "error": "error", diff --git a/web/src/components/repo/pipeline/PipelineLog.vue b/web/src/components/repo/pipeline/PipelineLog.vue index 8c0279454..8a23b137a 100644 --- a/web/src/components/repo/pipeline/PipelineLog.vue +++ b/web/src/components/repo/pipeline/PipelineLog.vue @@ -102,6 +102,7 @@
{{ $t('repo.pipeline.actions.canceled') }} + {{ $t('repo.pipeline.actions.skipped') }} {{ $t('repo.pipeline.step_not_started') }}
{{ $t('repo.pipeline.loading') }}
{{ $t('repo.pipeline.no_logs') }}
diff --git a/web/src/components/repo/pipeline/PipelineStatusIcon.vue b/web/src/components/repo/pipeline/PipelineStatusIcon.vue index 106a6b27d..51cef9735 100644 --- a/web/src/components/repo/pipeline/PipelineStatusIcon.vue +++ b/web/src/components/repo/pipeline/PipelineStatusIcon.vue @@ -44,7 +44,7 @@ const statusDescriptions = { pending: t('repo.pipeline.status.pending'), running: t('repo.pipeline.status.running'), skipped: t('repo.pipeline.status.skipped'), - canceled: t('repo.pipeline.status.skipped'), + canceled: t('repo.pipeline.status.canceled'), started: t('repo.pipeline.status.started'), success: t('repo.pipeline.status.success'), } satisfies {