You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CreateAutoMergeComment is a internal function, only use it for CommentTypePRScheduledToAutoMerge and CommentTypePRUnScheduledToAutoMerge CommentTypes
// createAutoMergeComment is a internal function, only use it for CommentTypePRScheduledToAutoMerge and CommentTypePRUnScheduledToAutoMerge CommentTypes
127
-
funccreateAutoMergeComment(ctx context.Context, typ models.CommentType, pr*models.PullRequest, doer*user_model.User) (comment*models.Comment, errerror) {
PullIDint64`xorm:"NOT NULL UNIQUE(pull_commit_user) DEFAULT 0"`// Which PR was the review on?
42
-
CommitSHAstring`xorm:"NOT NULL VARCHAR(40) UNIQUE(pull_commit_user)"`// Which commit was the head commit for the review?
43
-
UpdatedFilesmap[string]ViewedState`xorm:"NOT NULL LONGTEXT JSON"`// Stores for each of the changed files of a PR whether they have been viewed, changed since last viewed, or not viewed
44
-
UpdatedUnix timeutil.TimeStamp`xorm:"updated"`// Is an accurate indicator of the order of commits as we do not expect it to be possible to make reviews on previous commits
41
+
PullIDint64`xorm:"NOT NULL INDEX UNIQUE(pull_commit_user) DEFAULT 0"`// Which PR was the review on?
42
+
CommitSHAstring`xorm:"NOT NULL VARCHAR(40) UNIQUE(pull_commit_user)"`// Which commit was the head commit for the review?
43
+
UpdatedFilesmap[string]ViewedState`xorm:"NOT NULL LONGTEXT JSON"`// Stores for each of the changed files of a PR whether they have been viewed, changed since last viewed, or not viewed
44
+
UpdatedUnix timeutil.TimeStamp`xorm:"updated"`// Is an accurate indicator of the order of commits as we do not expect it to be possible to make reviews on previous commits
0 commit comments