Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: stage status update event url (#16412)
p0nybc508405489a
diff --git a/backend/component/webhook/event.go b/backend/component/webhook/event.goindex 1eec9e896a..75a5bc7ea9 100644--- a/backend/component/webhook/event.go+++ b/backend/component/webhook/event.go@@ -86,7 +86,7 @@ type EventIssueRolloutReady struct {type EventStageStatusUpdate struct {StageTitle string- StageUID int+ StageID string}type EventTaskRunStatusUpdate struct {diff --git a/backend/component/webhook/manager.go b/backend/component/webhook/manager.goindex 1ce24c3710..2a23497db5 100644--- a/backend/component/webhook/manager.go+++ b/backend/component/webhook/manager.go@@ -126,7 +126,7 @@ func (m *Manager) getWebhookContextFromEvent(ctx context.Context, e *Event, evencase base.EventTypeStageStatusUpdate:u := e.StageStatusUpdateif e.Issue != nil {- link = fmt.Sprintf("%s/projects/%s/issues/%s-%d?stage=%d", setting.ExternalUrl, e.Project.ResourceID, slug.Make(e.Issue.Title), e.Issue.UID, u.StageUID)+ link = fmt.Sprintf("%s/projects/%s/issues/%s-%d?stage=%s", setting.ExternalUrl, e.Project.ResourceID, slug.Make(e.Issue.Title), e.Issue.UID, u.StageID)}title = "Stage ends"titleZh = "阶段结束"diff --git a/backend/runner/taskrun/schedulerv2.go b/backend/runner/taskrun/schedulerv2.goindex 2a9b090b00..887ac84125 100644--- a/backend/runner/taskrun/schedulerv2.go+++ b/backend/runner/taskrun/schedulerv2.go@@ -820,12 +820,12 @@ func (s *SchedulerV2) ListenTaskSkippedOrDone(ctx context.Context) {Actor: s.store.GetSystemBotUser(ctx),Type: base.EventTypeStageStatusUpdate,Comment: "",- // Issue: webhook.NewIssue(issue),+ Issue: webhook.NewIssue(issue),Rollout: webhook.NewRollout(pipeline),Project: webhook.NewProject(project),StageStatusUpdate: &webhook.EventStageStatusUpdate{StageTitle: currentEnvironment,- StageUID: 0, // TODO: Remove StageUID from webhook event+ StageID: currentEnvironment,},})return nil