Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Check assignee before creating the issue
天舟8764fb604d56
diff --git a/server/issue.go b/server/issue.goindex e9f8ddd71d..2e2c51a0cb 100644--- a/server/issue.go+++ b/server/issue.go@@ -319,6 +319,10 @@ func (s *Server) CreateIssue(ctx context.Context, issueCreate *api.IssueCreate,// since we are not creating pipeline/stage list/task list in a single transaction.// We may still run into this issue when we actually create those pipeline/stage list/task list, however, that's// quite unlikely so we will live with it for now.+ if issueCreate.AssigneeId == api.UNKNOWN_ID {+ return nil, fmt.Errorf("assignee missing")+ }+for _, stageCreate := range issueCreate.Pipeline.StageList {for _, taskCreate := range stageCreate.TaskList {if taskCreate.Type == api.TaskDatabaseCreate {