Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add comment

d-bytebase94de2f9601dd
diff --git a/backend/server/server.go b/backend/server/server.go
index 79a90a6151..15dfbc8fe2 100644
--- a/backend/server/server.go
+++ b/backend/server/server.go
@@ -1384,7 +1384,8 @@ Click "Approve" button to apply the schema update.`,
CreateContext: string(createContext),
}
- // Use system bot as the creator so that the issue only appears in the user's assignee list
+ // TODO(d): use new CI/CD API.
+ // Use system bot as the creator so that the issue only appears in the user's assignee list.
issue, err := s.createIssue(ctx, issueCreate, api.SystemBotID)
if err != nil {
return errors.Wrapf(err, "failed to create sample issue")
diff --git a/backend/server/webhook.go b/backend/server/webhook.go
index 3dfeed5228..aaaa955996 100644
--- a/backend/server/webhook.go
+++ b/backend/server/webhook.go
@@ -1526,6 +1526,7 @@ func sortFilesBySchemaVersion(fileInfoList []fileInfo) []fileInfo {
}
func (s *Server) createIssueFromMigrationDetailList(ctx context.Context, issueName, issueDescription string, pushEvent vcs.PushEvent, creatorID, projectID int, migrationDetailList []*api.MigrationDetail) error {
+ // TODO(d): use new API.
createContext, err := json.Marshal(
&api.MigrationContext{
VCSPushEvent: &pushEvent,