Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update shouldCreateExternalApproval comment (#3482)
p0ny8d0e925dfe20
diff --git a/server/application_runner.go b/server/application_runner.goindex 5db761bd35..2aa0e9e671 100644--- a/server/application_runner.go+++ b/server/application_runner.go@@ -425,8 +425,9 @@ func (r *ApplicationRunner) ScheduleApproval(ctx context.Context, pipeline *api.// createExternalApprovalIfNeeded// check if we need to create a new external approval- // 1. has one or more PENDING_APPROVAL tasks.- // 2. all task checks are done and the results have no errors.+ // 1. the approval policy of the stage environment is MANUAL_APPROVAL_ALWAYS.+ // 2. the stage has one or more PENDING_APPROVAL tasks.+ // 3. all task checks of the stage are done and the results have no errors.ok, err := r.shouldCreateExternalApproval(ctx, issue, stage, oldApproval)if err != nil {log.Error("failed to check shouldCreateExternalApproval", zap.Error(err))