Versions in this module Expand all Collapse all v1 v1.28.0-dev Jun 29, 2026 v1.27.0 Jul 13, 2026 Changes in this version + const FilterModeAll + const FilterModeAssign + const FilterModeCreate + const FilterModeMention + const FilterModeReviewRequested + const FilterModeReviewed + const FilterModeYourRepositories + const ScopeSortPrefix + var ErrCommentAlreadyChanged = util.NewInvalidArgumentErrorf("the comment is already changed") + var ErrIssueAlreadyChanged = util.NewInvalidArgumentErrorf("the issue is already changed") + var ErrIssueMaxPinReached = util.NewInvalidArgumentErrorf("the max number of pinned issues has been readched") + var ErrMustCollaborator = util.NewPermissionDeniedErrorf("user must be a collaborator") + var MaxQueryParameters = 300 + func AddDeletePRBranchComment(ctx context.Context, doer *user_model.User, repo *repo_model.Repository, ...) error + func BuildLabelNamesIssueIDsCondition(labelNames []string) *builder.Builder + func CanMaintainerWriteToBranch(ctx context.Context, headPerm access_model.Permission, headBranch string, ...) bool + func CanMarkConversation(ctx context.Context, issue *Issue, doer *user_model.User) (permResult bool, err error) + func CancelStopwatch(ctx context.Context, user *user_model.User, issue *Issue) (ok bool, err error) + func ChangeIssueContent(ctx context.Context, issue *Issue, doer *user_model.User, content string, ...) (err error) + func ChangeIssueRef(ctx context.Context, issue *Issue, doer *user_model.User, oldRef string) (err error) + func ChangeIssueTimeEstimate(ctx context.Context, issue *Issue, doer *user_model.User, timeEstimate int64) error + func ChangeIssueTitle(ctx context.Context, issue *Issue, doer *user_model.User, oldTitle string) (err error) + func ChangeMilestoneStatus(ctx context.Context, m *Milestone, isClosed bool) (err error) + func ChangeMilestoneStatusByRepoIDAndID(ctx context.Context, repoID, milestoneID int64, isClosed bool) error + func CheckIssueWatch(ctx context.Context, user *user_model.User, issue *Issue) (bool, error) + func ClearIssueLabels(ctx context.Context, issue *Issue, doer *user_model.User) (err error) + func CommentHashTag(id int64) string + func CommentTypeIsRef(t CommentType) bool + func CountCommentTypeLabelWithEmptyLabel(ctx context.Context) (int64, error) + func CountCommentTypeLabelWithOutsideLabels(ctx context.Context) (int64, error) + func CountComments(ctx context.Context, opts *FindCommentsOptions) (int64, error) + func CountIssueLabelWithOutsideLabels(ctx context.Context) (int64, error) + func CountIssueWatchers(ctx context.Context, issueID int64) (int64, error) + func CountIssues(ctx context.Context, opts *IssuesOptions, otherConds ...builder.Cond) (int64, error) + func CountIssuesByRepo(ctx context.Context, opts *IssuesOptions) (map[int64]int64, error) + func CountLabelsByOrgID(ctx context.Context, orgID int64) (int64, error) + func CountLabelsByRepoID(ctx context.Context, repoID int64) (int64, error) + func CountMilestonesMap(ctx context.Context, opts FindMilestoneOptions) (map[int64]int64, error) + func CountOrphanedIssueLabels(ctx context.Context) (int64, error) + func CountOrphanedIssues(ctx context.Context) (int64, error) + func CountOrphanedLabels(ctx context.Context) (int64, error) + func CountReviews(ctx context.Context, opts FindReviewOptions) (int64, error) + func CountTrackedTimes(ctx context.Context, opts *FindTrackedTimesOptions) (int64, error) + func CountUserStopwatches(ctx context.Context, userID int64) (int64, error) + func CreateIssueDependency(ctx context.Context, user *user_model.User, issue, dep *Issue) error + func CreateIssueStopwatch(ctx context.Context, user *user_model.User, issue *Issue) (ok bool, err error) + func CreateOrUpdateIssueWatch(ctx context.Context, userID, issueID int64, isWatching bool) error + func CutWorkInProgressPrefix(title string) (origTitle string, ok bool) + func DecrRepoIssueNumbers(ctx context.Context, repoID int64, isPull, includeTotal, includeClosed bool) error + func DeleteComment(ctx context.Context, comment *Comment) error + func DeleteCommentReaction(ctx context.Context, doerID, issueID, commentID int64, content string) error + func DeleteIssueLabel(ctx context.Context, issue *Issue, label *Label, doer *user_model.User) error + func DeleteIssueReaction(ctx context.Context, doerID, issueID int64, content string) error + func DeleteIssueUserTimes(ctx context.Context, issue *Issue, user *user_model.User) error + func DeleteLabel(ctx context.Context, id, labelID int64) error + func DeleteLabelsByRepoID(ctx context.Context, repoID int64) error + func DeleteMilestoneByRepoID(ctx context.Context, repoID, id int64) error + func DeleteOrphanedIssueLabels(ctx context.Context) error + func DeleteOrphanedLabels(ctx context.Context) error + func DeletePullsByBaseRepoID(ctx context.Context, repoID int64) error + func DeleteReaction(ctx context.Context, opts *ReactionOptions) error + func DeleteReview(ctx context.Context, r *Review) error + func DeleteTime(ctx context.Context, t *TrackedTime) error + func DismissReview(ctx context.Context, review *Review, isDismiss bool) (err error) + func FindAndUpdateIssueMentions(ctx context.Context, issue *Issue, doer *user_model.User, content string) (mentions []*user_model.User, err error) + func FinishIssueStopwatch(ctx context.Context, user *user_model.User, issue *Issue) (ok bool, err error) + func FixCommentTypeLabelWithEmptyLabel(ctx context.Context) (int64, error) + func FixCommentTypeLabelWithOutsideLabels(ctx context.Context) (int64, error) + func FixIssueLabelWithOutsideLabels(ctx context.Context) (int64, error) + func GetAssigneeIDsByIssue(ctx context.Context, issueID int64) ([]int64, error) + func GetGrantedApprovalsCount(ctx context.Context, protectBranch *git_model.ProtectedBranch, pr *PullRequest) int64 + func GetIssueIDsByRepoID(ctx context.Context, repoID int64) ([]int64, error) + func GetIssueMentionIDs(ctx context.Context, issueID int64) ([]int64, error) + func GetIssueTotalTrackedTime(ctx context.Context, opts *IssuesOptions, isClosed optional.Option[bool]) (int64, error) + func GetIssueWatchersIDs(ctx context.Context, issueID int64, watching bool) ([]int64, error) + func GetLabelIDsByNames(ctx context.Context, labelNames []string) ([]int64, error) + func GetLabelIDsInOrgByNames(ctx context.Context, orgID int64, labelNames []string) ([]int64, error) + func GetLabelIDsInRepoByNames(ctx context.Context, repoID int64, labelNames []string) ([]int64, error) + func GetMilestoneIDsByNames(ctx context.Context, names []string) ([]int64, error) + func GetOrphanedIssueRepoIDs(ctx context.Context) ([]int64, error) + func GetParticipantsIDsByIssueID(ctx context.Context, issueID int64) ([]int64, error) + func GetPullRequestIDsByCheckStatus(ctx context.Context, status PullRequestStatus) ([]int64, error) + func GetTrackedSeconds(ctx context.Context, opts FindTrackedTimesOptions) (trackedSeconds int64, err error) + func HasEnoughApprovals(ctx context.Context, protectBranch *git_model.ProtectedBranch, pr *PullRequest) bool + func HasIssueContentHistory(dbCtx context.Context, issueID, commentID int64) (bool, error) + func HasIssueLabel(ctx context.Context, issueID, labelID int64) bool + func HasMergedPullRequestInRepo(ctx context.Context, repoID, posterID int64) (bool, error) + func HasMergedPullRequestInRepoBefore(ctx context.Context, repoID, posterID int64, beforeUnix timeutil.TimeStamp, ...) (bool, error) + func HasMilestoneByRepoID(ctx context.Context, repoID, id int64) (bool, error) + func HasUnmergedPullRequestsByHeadInfo(ctx context.Context, repoID int64, branch string) (bool, error) + func HasUserStopwatch(ctx context.Context, userID int64) (exists bool, sw *Stopwatch, issue *Issue, err error) + func HasWorkInProgressPrefix(title string) bool + func IncrRepoIssueNumbers(ctx context.Context, repoID int64, isPull, totalOrClosed bool) error + func InsertIssueComments(ctx context.Context, comments []*Comment) error + func InsertIssues(ctx context.Context, issues ...*Issue) error + func InsertMilestones(ctx context.Context, ms ...*Milestone) (err error) + func InsertPullRequests(ctx context.Context, prs ...*PullRequest) error + func InsertReviews(ctx context.Context, reviews []*Review) error + func IsContentEmptyErr(err error) bool + func IsErrCircularDependency(err error) bool + func IsErrCommentNotExist(err error) bool + func IsErrDependenciesLeft(err error) bool + func IsErrDependencyExists(err error) bool + func IsErrDependencyNotExists(err error) bool + func IsErrForbiddenIssueReaction(err error) bool + func IsErrIssueIsClosed(err error) bool + func IsErrIssueMaxPinReached(err error) bool + func IsErrIssueNotExist(err error) bool + func IsErrLabelNotExist(err error) bool + func IsErrMilestoneNotExist(err error) bool + func IsErrNotValidReviewRequest(err error) bool + func IsErrOrgLabelNotExist(err error) bool + func IsErrPullRequestAlreadyExists(err error) bool + func IsErrPullRequestNotExist(err error) bool + func IsErrReactionAlreadyExist(err error) bool + func IsErrReviewNotExist(err error) bool + func IsErrReviewRequestOnClosedPR(err error) bool + func IsNewPinAllowed(ctx context.Context, repoID int64, isPull bool) (bool, error) + func IsOfficialReviewer(ctx context.Context, issue *Issue, reviewer *user_model.User) (bool, error) + func IsOfficialReviewerTeam(ctx context.Context, issue *Issue, team *organization.Team) (bool, error) + func IsUserAssignedToIssue(ctx context.Context, issue *Issue, userID int64) (isAssigned bool, err error) + func IsUserParticipantsOfIssue(ctx context.Context, user *user_model.User, issue *Issue) bool + func IssueAssignOrRemoveProject(ctx context.Context, issue *Issue, doer *user_model.User, ...) error + func IssueIDs(ctx context.Context, opts *IssuesOptions, otherConds ...builder.Cond) ([]int64, int64, error) + func IssueNoDependenciesLeft(ctx context.Context, issue *Issue) (bool, error) + func KeepLimitedContentHistory(ctx context.Context, issueID, commentID int64, limit int) + func LoadProjectIssueColumnMap(ctx context.Context, projectID, defaultColumnID int64) (map[int64]int64, error) + func LockIssue(ctx context.Context, opts *IssueLockOptions) error + func MakeIDsFromAPIAssigneesToAdd(ctx context.Context, oneAssignee string, multipleAssignees []string) ([]int64, error) + func MarkConversation(ctx context.Context, comment *Comment, doer *user_model.User, isResolve bool) (err error) + func MarkReviewsAsNotStale(ctx context.Context, issueID int64, commitID string) (err error) + func MarkReviewsAsStale(ctx context.Context, issueID int64) (err error) + func MergeBlockedByOfficialReviewRequests(ctx context.Context, protectBranch *git_model.ProtectedBranch, pr *PullRequest) bool + func MergeBlockedByOutdatedBranch(protectBranch *git_model.ProtectedBranch, pr *PullRequest) bool + func MergeBlockedByRejectedReview(ctx context.Context, protectBranch *git_model.ProtectedBranch, pr *PullRequest) bool + func MovePin(ctx context.Context, issue *Issue, newPosition int) error + func NewIssue(ctx context.Context, repo *repo_model.Repository, issue *Issue, ...) (err error) + func NewIssueLabel(ctx context.Context, issue *Issue, label *Label, doer *user_model.User) (err error) + func NewIssueLabels(ctx context.Context, issue *Issue, labels []*Label, doer *user_model.User) (err error) + func NewIssueUsers(ctx context.Context, repo *repo_model.Repository, issue *Issue) error + func NewIssueWithIndex(ctx context.Context, doer *user_model.User, opts NewIssueOptions) (err error) + func NewLabel(ctx context.Context, l *Label) error + func NewLabels(ctx context.Context, labels ...*Label) error + func NewMilestone(ctx context.Context, m *Milestone) (err error) + func NewPullRequest(ctx context.Context, repo *repo_model.Repository, issue *Issue, ...) (err error) + func PinIssue(ctx context.Context, issue *Issue, user *user_model.User) error + func QueryIssueContentHistoryEditedCountMap(dbCtx context.Context, issueID int64) (map[int64]int, error) + func RecalculateIssueIndexForRepo(ctx context.Context, repoID int64) error + func RecalculateReviewsOfficial(ctx context.Context, issue *Issue) error + func RemoveDuplicateExclusiveIssueLabels(ctx context.Context, issue *Issue, label *Label, doer *user_model.User) (err error) + func RemoveIssueDependency(ctx context.Context, user *user_model.User, issue, dep *Issue, ...) (err error) + func RemoveIssueWatchersByRepoID(ctx context.Context, userID, repoID int64) error + func RemoveStopwatchesByRepoID(ctx context.Context, userID, repoID int64) error + func ReplaceIssueLabels(ctx context.Context, issue *Issue, labels []*Label, doer *user_model.User) (err error) + func ResolveIssueMentionsByVisibility(ctx context.Context, issue *Issue, doer *user_model.User, mentions []string) (users []*user_model.User, err error) + func ReviewExists(ctx context.Context, issue *Issue, treePath string, line int64) (bool, error) + func SaveIssueContentHistory(ctx context.Context, posterID, issueID, commentID int64, ...) error + func SoftDeleteIssueContentHistory(dbCtx context.Context, historyID int64) error + func StopwatchExists(ctx context.Context, userID, issueID int64) bool + func SubmitReview(ctx context.Context, doer *user_model.User, issue *Issue, ...) (*Review, *Comment, error) + func TokenizeCodeOwnersLine(line string) []string + func TotalTimesForEachUser(ctx context.Context, options *FindTrackedTimesOptions) (map[*user_model.User]int64, error) + func UnlockIssue(ctx context.Context, opts *IssueLockOptions) error + func UnpinIssue(ctx context.Context, issue *Issue, user *user_model.User) error + func UpdateAllowEdits(ctx context.Context, pr *PullRequest) error + func UpdateComment(ctx context.Context, c *Comment, contentVersion int, doer *user_model.User) error + func UpdateCommentAttachments(ctx context.Context, c *Comment, uuids []string) error + func UpdateCommentInvalidate(ctx context.Context, c *Comment) error + func UpdateCommentsMigrationsByType(ctx context.Context, tp structs.GitServiceType, originalAuthorID string, ...) error + func UpdateIssueAttachments(ctx context.Context, issueID int64, uuids []string) (err error) + func UpdateIssueCols(ctx context.Context, issue *Issue, cols ...string) error + func UpdateIssueDeadline(ctx context.Context, issue *Issue, deadlineUnix timeutil.TimeStamp, ...) (err error) + func UpdateIssueMentions(ctx context.Context, issueID int64, mentions []*user_model.User) error + func UpdateIssueNumComments(ctx context.Context, issueID int64) error + func UpdateIssueNumCommentsBuilder(issueID int64) *builder.Builder + func UpdateIssueUserByRead(ctx context.Context, uid, issueID int64) error + func UpdateIssueUsersByMentions(ctx context.Context, issueID int64, uids []int64) error + func UpdateIssuesMigrationsByType(ctx context.Context, gitServiceType api.GitServiceType, ...) error + func UpdateLabel(ctx context.Context, l *Label) error + func UpdateMilestone(ctx context.Context, m *Milestone, oldIsClosed bool) error + func UpdateMilestoneCounters(ctx context.Context, id int64) error + func UpdateReactionsMigrationsByType(ctx context.Context, gitServiceType api.GitServiceType, ...) error + func UpdateReviewsMigrationsByType(ctx context.Context, tp structs.GitServiceType, originalAuthorID string, ...) error + type AssignedIssuesOptions struct + AssigneeID int64 + RepoOwnerID int64 + func (opts *AssignedIssuesOptions) ToConds() builder.Cond + type CodeComments map[string]map[int64][]*Comment + func FetchCodeComments(ctx context.Context, issue *Issue, currentUser *user_model.User, ...) (CodeComments, error) + type CodeOwnerRule struct + Negative bool + Rule *regexp2.Regexp + Teams []*org_model.Team + Users []*user_model.User + func GetCodeOwnersFromContent(ctx context.Context, data string) ([]*CodeOwnerRule, []string) + func ParseCodeOwnersLine(ctx context.Context, tokens []string) (*CodeOwnerRule, []string) + type Comment struct + AddedLabels []*Label + Assignee *user_model.User + AssigneeID int64 + AssigneeTeam *organization.Team + AssigneeTeamID int64 + Attachments []*repo_model.Attachment + CommentMetaData *CommentMetaData + CommitID int64 + CommitSHA string + Commits []*git_model.SignCommitWithStatuses + CommitsNum int64 + Content string + ContentVersion int + CreatedUnix timeutil.TimeStamp + DependentIssue *Issue + DependentIssueID int64 + ID int64 + Invalidated bool + IsForcePush bool + Issue *Issue + IssueID int64 + Label *Label + LabelID int64 + Line int64 + Milestone *Milestone + MilestoneID int64 + NewCommit string + NewRef string + NewTitle string + OldCommit string + OldMilestone *Milestone + OldMilestoneID int64 + OldProject *project_model.Project + OldProjectID int64 + OldRef string + OldTitle string + OriginalAuthor string + OriginalAuthorID int64 + Patch string + PatchQuoted string + Poster *user_model.User + PosterID int64 + Project *project_model.Project + ProjectID int64 + Reactions ReactionList + RefAction references.XRefAction + RefComment *Comment + RefCommentID int64 + RefIsPull bool + RefIssue *Issue + RefIssueID int64 + RefRepo *repo_model.Repository + RefRepoID int64 + RemovedAssignee bool + RemovedLabels []*Label + RenderedContent template.HTML + ResolveDoer *user_model.User + ResolveDoerID int64 + Review *Review + ReviewID int64 + ShowRole RoleDescriptor + Time *TrackedTime + TimeID int64 + TreePath string + Type CommentType + UpdatedUnix timeutil.TimeStamp + func AddReviewRequest(ctx context.Context, issue *Issue, reviewer, doer *user_model.User, ...) (*Comment, error) + func AddTeamReviewRequest(ctx context.Context, issue *Issue, reviewer *organization.Team, ...) (*Comment, error) + func CloseIssue(ctx context.Context, issue *Issue, doer *user_model.User) (*Comment, error) + func CreateAutoMergeComment(ctx context.Context, typ CommentType, pr *PullRequest, doer *user_model.User) (comment *Comment, err error) + func CreateComment(ctx context.Context, opts *CreateCommentOptions) (_ *Comment, err error) + func GetCommentByID(ctx context.Context, id int64) (*Comment, error) + func GetCommentWithRepoID(ctx context.Context, repoID, commentID int64) (*Comment, error) + func RemoveReviewRequest(ctx context.Context, issue *Issue, reviewer, doer *user_model.User) (*Comment, error) + func RemoveTeamReviewRequest(ctx context.Context, issue *Issue, reviewer *organization.Team, ...) (*Comment, error) + func ReopenIssue(ctx context.Context, issue *Issue, doer *user_model.User) (*Comment, error) + func SetIssueAsClosed(ctx context.Context, issue *Issue, doer *user_model.User, isMergePull bool) (*Comment, error) + func ToggleIssueAssignee(ctx context.Context, issue *Issue, doer *user_model.User, assigneeID int64) (removed bool, comment *Comment, err error) + func (c *Comment) APIURL(ctx context.Context) string + func (c *Comment) AddCrossReferences(stdCtx context.Context, doer *user_model.User, removeOld bool) error + func (c *Comment) AfterDelete(ctx context.Context) + func (c *Comment) AfterLoad() + func (c *Comment) BeforeInsert() + func (c *Comment) BeforeUpdate() + func (c *Comment) CodeCommentLink(ctx context.Context) string + func (c *Comment) DiffSide() string + func (c *Comment) EventTag() string + func (c *Comment) GetExternalID() int64 + func (c *Comment) GetExternalName() string + func (c *Comment) GetPushActionContent() (*PushActionContent, error) + func (c *Comment) GetSanitizedContentHTML() template.HTML + func (c *Comment) GetUserID() int64 + func (c *Comment) HTMLURL(ctx context.Context) string + func (c *Comment) HasOriginalAuthor() bool + func (c *Comment) HashTag() string + func (c *Comment) IsResolved() bool + func (c *Comment) IssueURL(ctx context.Context) string + func (c *Comment) Link(ctx context.Context) string + func (c *Comment) LoadAssigneeUserAndTeam(ctx context.Context) (err error) + func (c *Comment) LoadAttachments(ctx context.Context) error + func (c *Comment) LoadDepIssueDetails(ctx context.Context) (err error) + func (c *Comment) LoadIssue(ctx context.Context) (err error) + func (c *Comment) LoadLabel(ctx context.Context) error + func (c *Comment) LoadMilestone(ctx context.Context) error + func (c *Comment) LoadPoster(ctx context.Context) (err error) + func (c *Comment) LoadProject(ctx context.Context) error + func (c *Comment) LoadReactions(ctx context.Context, repo *repo_model.Repository) (err error) + func (c *Comment) LoadRefComment(ctx context.Context) (err error) + func (c *Comment) LoadRefIssue(ctx context.Context) (err error) + func (c *Comment) LoadResolveDoer(ctx context.Context) (err error) + func (c *Comment) LoadReview(ctx context.Context) (err error) + func (c *Comment) LoadTime(ctx context.Context) error + func (c *Comment) MetaSpecialDoerTr(locale translation.Locale) template.HTML + func (c *Comment) PRURL(ctx context.Context) string + func (c *Comment) RefCommentLink(ctx context.Context) string + func (c *Comment) RefIssueIdent(ctx context.Context) string + func (c *Comment) RefIssueLink(ctx context.Context) string + func (c *Comment) RefIssueTitle(ctx context.Context) string + func (c *Comment) RemapExternalUser(externalName string, externalID, userID int64) error + func (c *Comment) TimelineRequestedReviewTr(locale translation.Locale, createdStr template.HTML) template.HTML + func (c *Comment) UnsignedLine() uint64 + type CommentList []*Comment + func FetchCodeCommentsByLine(ctx context.Context, issue *Issue, currentUser *user_model.User, ...) (CommentList, error) + func FindComments(ctx context.Context, opts *FindCommentsOptions) (CommentList, error) + func (comments CommentList) Issues() IssueList + func (comments CommentList) LoadAttachments(ctx context.Context) (err error) + func (comments CommentList) LoadAttachmentsByIssue(ctx context.Context) error + func (comments CommentList) LoadAttributes(ctx context.Context) (err error) + func (comments CommentList) LoadIssues(ctx context.Context) error + func (comments CommentList) LoadPosters(ctx context.Context) error + type CommentMetaData struct + ProjectColumnID int64 + ProjectColumnTitle string + ProjectTitle string + SpecialDoerName SpecialDoerNameType + type CommentType int + const CommentTypeAddDependency + const CommentTypeAddTimeManual + const CommentTypeAddedDeadline + const CommentTypeAssignees + const CommentTypeCancelTracking + const CommentTypeChangeIssueRef + const CommentTypeChangeTargetBranch + const CommentTypeChangeTimeEstimate + const CommentTypeChangeTitle + const CommentTypeClose + const CommentTypeCode + const CommentTypeComment + const CommentTypeCommentRef + const CommentTypeCommitRef + const CommentTypeDeleteBranch + const CommentTypeDeleteTimeManual + const CommentTypeDismissReview + const CommentTypeIssueRef + const CommentTypeLabel + const CommentTypeLock + const CommentTypeMergePull + const CommentTypeMilestone + const CommentTypeModifiedDeadline + const CommentTypePRScheduledToAutoMerge + const CommentTypePRUnScheduledToAutoMerge + const CommentTypePin + const CommentTypeProject + const CommentTypeProjectColumn + const CommentTypePullRef + const CommentTypePullRequestPush + const CommentTypeRemoveDependency + const CommentTypeRemovedDeadline + const CommentTypeReopen + const CommentTypeReview + const CommentTypeReviewRequest + const CommentTypeStartTracking + const CommentTypeStopTracking + const CommentTypeUndefined + const CommentTypeUnlock + const CommentTypeUnpin + func AsCommentType(typeName string) CommentType + func ConversationCountedCommentType() []CommentType + func (t CommentType) CountedAsConversation() bool + func (t CommentType) HasAttachmentSupport() bool + func (t CommentType) HasContentSupport() bool + func (t CommentType) HasMailReplySupport() bool + func (t CommentType) String() string + type ContentEmptyErr struct + func (ContentEmptyErr) Error() string + type ContentHistory struct + CommentID int64 + ContentText string + EditedUnix timeutil.TimeStamp + ID int64 + IsDeleted bool + IsFirstCreated bool + IssueID int64 + PosterID int64 + func GetIssueContentHistoryAndPrev(dbCtx context.Context, issueID, id int64) (history, prevHistory *ContentHistory, err error) + func GetIssueContentHistoryByID(dbCtx context.Context, id int64) (*ContentHistory, error) + func (m *ContentHistory) TableName() string + type CreateCommentOptions struct + AssigneeID int64 + AssigneeTeamID int64 + Attachments []string + CommitID int64 + CommitSHA string + Content string + DependentIssueID int64 + Doer *user_model.User + Invalidated bool + IsForcePush bool + Issue *Issue + Label *Label + LineNum int64 + MilestoneID int64 + NewRef string + NewTitle string + OldMilestoneID int64 + OldProjectID int64 + OldRef string + OldTitle string + Patch string + ProjectColumnID int64 + ProjectColumnTitle string + ProjectID int64 + ProjectTitle string + RefAction references.XRefAction + RefCommentID int64 + RefIsPull bool + RefIssueID int64 + RefRepoID int64 + RemovedAssignee bool + Repo *repo_model.Repository + ReviewID int64 + SpecialDoerName SpecialDoerNameType + TimeID int64 + TreePath string + Type CommentType + type CreateReviewOptions struct + CommitID string + Content string + Issue *Issue + Official bool + Reviewer *user_model.User + ReviewerTeam *organization.Team + Stale bool + Type ReviewType + type DependencyInfo struct + type DependencyType int + const DependencyTypeBlockedBy + const DependencyTypeBlocking + type ErrCircularDependency struct + DependencyID int64 + IssueID int64 + func (err ErrCircularDependency) Error() string + type ErrCommentNotExist struct + ID int64 + IssueID int64 + func (err ErrCommentNotExist) Error() string + func (err ErrCommentNotExist) Unwrap() error + type ErrDependenciesLeft struct + IssueID int64 + func (err ErrDependenciesLeft) Error() string + type ErrDependencyExists struct + DependencyID int64 + IssueID int64 + func (err ErrDependencyExists) Error() string + func (err ErrDependencyExists) Unwrap() error + type ErrDependencyNotExists struct + DependencyID int64 + IssueID int64 + func (err ErrDependencyNotExists) Error() string + func (err ErrDependencyNotExists) Unwrap() error + type ErrForbiddenIssueReaction struct + Reaction string + func (err ErrForbiddenIssueReaction) Error() string + func (err ErrForbiddenIssueReaction) Unwrap() error + type ErrIssueContentHistoryNotExist struct + ID int64 + func (err ErrIssueContentHistoryNotExist) Error() string + func (err ErrIssueContentHistoryNotExist) Unwrap() error + type ErrIssueIsClosed struct + ID int64 + Index int64 + IsPull bool + RepoID int64 + func (err ErrIssueIsClosed) Error() string + type ErrIssueIsOpen struct + ID int64 + Index int64 + IsPull bool + RepoID int64 + func (err ErrIssueIsOpen) Error() string + type ErrIssueNotExist struct + ID int64 + Index int64 + RepoID int64 + func (err ErrIssueNotExist) Error() string + func (err ErrIssueNotExist) Unwrap() error + type ErrLabelNotExist struct + LabelID int64 + func (err ErrLabelNotExist) Error() string + func (err ErrLabelNotExist) Unwrap() error + type ErrMilestoneNotExist struct + ID int64 + Name string + RepoID int64 + func (err ErrMilestoneNotExist) Error() string + func (err ErrMilestoneNotExist) Unwrap() error + type ErrNotValidReviewRequest struct + Reason string + RepoID int64 + UserID int64 + func (err ErrNotValidReviewRequest) Error() string + func (err ErrNotValidReviewRequest) Unwrap() error + type ErrOrgLabelNotExist struct + LabelID int64 + OrgID int64 + func (err ErrOrgLabelNotExist) Error() string + func (err ErrOrgLabelNotExist) Unwrap() error + type ErrPullRequestAlreadyExists struct + BaseBranch string + BaseRepoID int64 + HeadBranch string + HeadRepoID int64 + ID int64 + IssueID int64 + func (err ErrPullRequestAlreadyExists) Error() string + func (err ErrPullRequestAlreadyExists) Unwrap() error + type ErrPullRequestNotExist struct + BaseBranch string + BaseRepoID int64 + HeadBranch string + HeadRepoID int64 + ID int64 + IssueID int64 + func (err ErrPullRequestNotExist) Error() string + func (err ErrPullRequestNotExist) Unwrap() error + type ErrReactionAlreadyExist struct + Reaction string + func (err ErrReactionAlreadyExist) Error() string + func (err ErrReactionAlreadyExist) Unwrap() error + type ErrRepoLabelNotExist struct + LabelID int64 + RepoID int64 + func (err ErrRepoLabelNotExist) Error() string + func (err ErrRepoLabelNotExist) Unwrap() error + type ErrReviewNotExist struct + ID int64 + func (err ErrReviewNotExist) Error() string + func (err ErrReviewNotExist) Unwrap() error + type ErrReviewRequestOnClosedPR struct + func (err ErrReviewRequestOnClosedPR) Error() string + func (err ErrReviewRequestOnClosedPR) Unwrap() error + type ErrUnknownDependencyType struct + Type DependencyType + func (err ErrUnknownDependencyType) Error() string + func (err ErrUnknownDependencyType) Unwrap() error + type ErrUserMustCollaborator struct + RepoName string + UserID int64 + type FindCommentsOptions struct + Before int64 + Invalidated optional.Option[bool] + IsPull optional.Option[bool] + IssueID int64 + IssueIDs []int64 + Line int64 + RepoID int64 + ReviewID int64 + Since int64 + TreePath string + Type CommentType + func (opts FindCommentsOptions) ToConds() builder.Cond + type FindMilestoneOptions struct + IsClosed optional.Option[bool] + Name string + RepoCond builder.Cond + RepoID int64 + RepoIDs []int64 + SortType string + func (opts FindMilestoneOptions) ToConds() builder.Cond + func (opts FindMilestoneOptions) ToOrders() string + type FindReactionsOptions struct + CommentID int64 + IssueID int64 + Reaction string + UserID int64 + type FindReviewOptions struct + Dismissed optional.Option[bool] + IssueID int64 + OfficialOnly bool + ReviewerID int64 + Types []ReviewType + type FindTrackedTimesOptions struct + CreatedAfterUnix int64 + CreatedBeforeUnix int64 + IssueID int64 + MilestoneID int64 + RepositoryID int64 + UserID int64 + func (opts *FindTrackedTimesOptions) ToConds() builder.Cond + func (opts *FindTrackedTimesOptions) ToJoins() []db.JoinFunc + type Issue struct + Assignee *user_model.User + AssigneeID int64 + Assignees []*user_model.User + Attachments []*repo_model.Attachment + ClosedUnix timeutil.TimeStamp + Comments CommentList + Content string + ContentVersion int + CreatedUnix timeutil.TimeStamp + DeadlineUnix timeutil.TimeStamp + ID int64 + Index int64 + IsClosed bool + IsLocked bool + IsPull bool + IsRead bool + Labels []*Label + Milestone *Milestone + MilestoneID int64 + NumComments int + OriginalAuthor string + OriginalAuthorID int64 + PinOrder int + Poster *user_model.User + PosterID int64 + Priority int + Projects []*project_model.Project + PullRequest *PullRequest + Reactions ReactionList + Ref string + RenderedContent template.HTML + Repo *repo_model.Repository + RepoID int64 + ShowRole RoleDescriptor + TimeEstimate int64 + Title string + TotalTrackedTime int64 + UpdatedUnix timeutil.TimeStamp + func GetAssignedIssues(ctx context.Context, opts *AssignedIssuesOptions) ([]*Issue, int64, error) + func GetIssueByID(ctx context.Context, id int64) (*Issue, error) + func GetIssueByIndex(ctx context.Context, repoID, index int64) (*Issue, error) + func GetIssueByRepoID(ctx context.Context, repoID, issueID int64) (*Issue, error) + func GetIssueWithAttrsByIndex(ctx context.Context, repoID, index int64) (*Issue, error) + func (issue *Issue) APIURL(ctx context.Context) string + func (issue *Issue) AddCrossReferences(stdCtx context.Context, doer *user_model.User, removeOld bool) error + func (issue *Issue) BlockedByDependencies(ctx context.Context, opts db.ListOptions) (issueDeps []*DependencyInfo, total int64, err error) + func (issue *Issue) BlockingDependencies(ctx context.Context) (issueDeps []*DependencyInfo, err error) + func (issue *Issue) DiffURL() string + func (issue *Issue) GetExternalID() int64 + func (issue *Issue) GetExternalName() string + func (issue *Issue) GetIsRead(ctx context.Context, userID int64) error + func (issue *Issue) GetLastComment(ctx context.Context) (*Comment, error) + func (issue *Issue) GetLastEventLabel() string + func (issue *Issue) GetLastEventLabelFake() string + func (issue *Issue) GetLastEventTimestamp() timeutil.TimeStamp + func (issue *Issue) GetParticipantIDsByIssue(ctx context.Context) ([]int64, error) + func (issue *Issue) GetTasks() int + func (issue *Issue) GetTasksDone() int + func (issue *Issue) GetUserID() int64 + func (issue *Issue) HTMLURL(ctx context.Context) string + func (issue *Issue) HasOriginalAuthor() bool + func (issue *Issue) HashTag() string + func (issue *Issue) IsOverdue() bool + func (issue *Issue) IsPinned() bool + func (issue *Issue) IsPoster(uid int64) bool + func (issue *Issue) IsTimetrackerEnabled(ctx context.Context) bool + func (issue *Issue) Link() string + func (issue *Issue) LoadAssignees(ctx context.Context) (err error) + func (issue *Issue) LoadAttachments(ctx context.Context) (err error) + func (issue *Issue) LoadAttributes(ctx context.Context) (err error) + func (issue *Issue) LoadDiscussComments(ctx context.Context) error + func (issue *Issue) LoadLabels(ctx context.Context) (err error) + func (issue *Issue) LoadMilestone(ctx context.Context) (err error) + func (issue *Issue) LoadPinOrder(ctx context.Context) error + func (issue *Issue) LoadPoster(ctx context.Context) (err error) + func (issue *Issue) LoadProjects(ctx context.Context) (err error) + func (issue *Issue) LoadPullRequest(ctx context.Context) (err error) + func (issue *Issue) LoadRepo(ctx context.Context) (err error) + func (issue *Issue) LoadTotalTimes(ctx context.Context) (err error) + func (issue *Issue) PatchURL() string + func (issue *Issue) ProjectColumnMap(ctx context.Context) (map[int64]int64, error) + func (issue *Issue) RemapExternalUser(externalName string, externalID, userID int64) error + func (issue *Issue) ResetAttributesLoaded() + func (issue *Issue) State() api.StateType + type IssueAssignees struct + AssigneeID int64 + ID int64 + IssueID int64 + type IssueContentListItem struct + EditedUnix timeutil.TimeStamp + HistoryID int64 + IsDeleted bool + IsFirstCreated bool + UserAvatarLink string + UserFullName string + UserID int64 + UserName string + func FetchIssueContentHistoryList(dbCtx context.Context, issueID, commentID int64) ([]*IssueContentListItem, error) + type IssueDependency struct + CreatedUnix timeutil.TimeStamp + DependencyID int64 + ID int64 + IssueID int64 + UpdatedUnix timeutil.TimeStamp + UserID int64 + type IssueIndex db.ResourceIndex + type IssueLabel struct + ID int64 + IssueID int64 + LabelID int64 + type IssueList []*Issue + func FindIssuesSuggestionByKeyword(ctx context.Context, repoID int64, keyword string, ...) (IssueList, error) + func FindLatestUpdatedIssues(ctx context.Context, repoID int64, isPull optional.Option[bool], pageSize int) (IssueList, error) + func GetIssuesByIDs(ctx context.Context, issueIDs []int64, keepOrder ...bool) (IssueList, error) + func GetPinnedIssues(ctx context.Context, repoID int64, isPull bool) (IssueList, error) + func Issues(ctx context.Context, opts *IssuesOptions) (IssueList, error) + func (issues IssueList) GetApprovalCounts(ctx context.Context) (map[int64][]*ReviewCount, error) + func (issues IssueList) LoadAssignees(ctx context.Context) error + func (issues IssueList) LoadAttachments(ctx context.Context) (err error) + func (issues IssueList) LoadAttributes(ctx context.Context) error + func (issues IssueList) LoadComments(ctx context.Context) error + func (issues IssueList) LoadDiscussComments(ctx context.Context) error + func (issues IssueList) LoadIsRead(ctx context.Context, userID int64) error + func (issues IssueList) LoadLabels(ctx context.Context) error + func (issues IssueList) LoadMilestones(ctx context.Context) error + func (issues IssueList) LoadPinOrder(ctx context.Context) error + func (issues IssueList) LoadPosters(ctx context.Context) error + func (issues IssueList) LoadProjects(ctx context.Context) error + func (issues IssueList) LoadPullRequests(ctx context.Context) error + func (issues IssueList) LoadRepositories(ctx context.Context) (repo_model.RepositoryList, error) + type IssueLockOptions struct + Doer *user_model.User + Issue *Issue + Reason string + type IssuePin struct + ID int64 + IsPull bool + IssueID int64 + PinOrder int + RepoID int64 + func GetIssuePin(ctx context.Context, issue *Issue) (*IssuePin, error) + func GetIssuePinsByIssueIDs(ctx context.Context, issueIDs []int64) ([]IssuePin, error) + func GetIssuePinsByRepoID(ctx context.Context, repoID int64, isPull bool) ([]*IssuePin, error) + type IssueStats struct + AssignCount int64 + ClosedCount int64 + CreateCount int64 + MentionCount int64 + OpenCount int64 + ReviewRequestedCount int64 + ReviewedCount int64 + YourRepositoriesCount int64 + func GetIssueStats(ctx context.Context, opts *IssuesOptions) (*IssueStats, error) + type IssueUser struct + ID int64 + IsMentioned bool + IsRead bool + IssueID int64 + UID int64 + type IssueWatch struct + CreatedUnix timeutil.TimeStamp + ID int64 + IsWatching bool + IssueID int64 + UpdatedUnix timeutil.TimeStamp + UserID int64 + func GetIssueWatch(ctx context.Context, userID, issueID int64) (iw *IssueWatch, exists bool, err error) + type IssueWatchList []*IssueWatch + func GetIssueWatchers(ctx context.Context, issueID int64, listOptions db.ListOptions) (IssueWatchList, error) + type IssuesOptions struct + AllPublic bool + AssigneeID string + Doer *user_model.User + ExcludedLabelNames []string + IncludeMilestones []string + IncludedLabelNames []string + IsArchived optional.Option[bool] + IsClosed optional.Option[bool] + IsPull optional.Option[bool] + IssueIDs []int64 + LabelIDs []int64 + MentionedID int64 + MilestoneIDs []int64 + Owner *user_model.User + Paginator *db.ListOptions + PosterID string + PriorityRepoID int64 + ProjectIDs []int64 + RepoCond builder.Cond + RepoIDs []int64 + ReviewRequestedID int64 + ReviewedID int64 + SortType string + SubscriberID int64 + Team *organization.Team + UpdatedAfterUnix int64 + UpdatedBeforeUnix int64 + func (o *IssuesOptions) Copy(edit ...func(options *IssuesOptions)) *IssuesOptions + type Label struct + ArchivedUnix timeutil.TimeStamp + Color string + CreatedUnix timeutil.TimeStamp + Description string + Exclusive bool + ExclusiveOrder int + ID int64 + IsChecked bool + IsExcluded bool + IsSelected bool + Name string + NumClosedIssues int + NumIssues int + NumOpenIssues int + NumOpenRepoIssues int64 + OrgID int64 + QueryString string + RepoID int64 + UpdatedUnix timeutil.TimeStamp + func GetLabelByID(ctx context.Context, labelID int64) (*Label, error) + func GetLabelInOrgByID(ctx context.Context, orgID, labelID int64) (*Label, error) + func GetLabelInOrgByName(ctx context.Context, orgID int64, labelName string) (*Label, error) + func GetLabelInRepoByID(ctx context.Context, repoID, labelID int64) (*Label, error) + func GetLabelInRepoByName(ctx context.Context, repoID int64, labelName string) (*Label, error) + func GetLabelInRepoOrOrgByID(ctx context.Context, repoID, ownerID int64, ownerIsOrg bool, labelID int64) (*Label, error) + func GetLabelsByIDs(ctx context.Context, labelIDs []int64, cols ...string) ([]*Label, error) + func GetLabelsByIssueID(ctx context.Context, issueID int64) ([]*Label, error) + func GetLabelsByOrgID(ctx context.Context, orgID int64, sortType string, listOptions db.ListOptions) ([]*Label, error) + func GetLabelsByRepoID(ctx context.Context, repoID int64, sortType string, listOptions db.ListOptions) ([]*Label, error) + func GetLabelsInOrgByIDs(ctx context.Context, orgID int64, labelIDs []int64) ([]*Label, error) + func GetLabelsInRepoByIDs(ctx context.Context, repoID int64, labelIDs []int64) ([]*Label, error) + func RemoveDuplicateExclusiveLabels(labels []*Label) []*Label + func (l *Label) BelongsToOrg() bool + func (l *Label) BelongsToRepo() bool + func (l *Label) CalOpenIssues() + func (l *Label) CalOpenOrgIssues(ctx context.Context, repoID, labelID int64) + func (l *Label) ExclusiveScope() string + func (l *Label) IsArchived() bool + func (l *Label) LoadSelectedLabelsAfterClick(currentSelectedLabels []int64, currentSelectedExclusiveScopes []string) + func (l *Label) SetArchived(isArchived bool) + type Milestone struct + ClosedDateUnix timeutil.TimeStamp + Completeness int + Content string + CreatedUnix timeutil.TimeStamp + DeadlineString string + DeadlineUnix timeutil.TimeStamp + ID int64 + IsClosed bool + IsOverdue bool + Name string + NumClosedIssues int + NumIssues int + NumOpenIssues int + RenderedContent template.HTML + Repo *repo_model.Repository + RepoID int64 + TotalTrackedTime int64 + UpdatedUnix timeutil.TimeStamp + func GetMilestoneByRepoID(ctx context.Context, repoID, id int64) (*Milestone, error) + func GetMilestoneByRepoIDANDName(ctx context.Context, repoID int64, name string) (*Milestone, error) + func (m *Milestone) AfterLoad() + func (m *Milestone) BeforeUpdate() + func (m *Milestone) LoadTotalTrackedTime(ctx context.Context) error + func (m *Milestone) State() api.StateType + type MilestoneList []*Milestone + func (milestones MilestoneList) LoadTotalTrackedTimes(ctx context.Context) error + func (milestones MilestoneList) SplitByOpenClosed() (open, closed MilestoneList) + type MilestonesStats struct + ClosedCount int64 + OpenCount int64 + func GetMilestonesStatsByRepoCondAndKw(ctx context.Context, repoCond builder.Cond, keyword string) (*MilestonesStats, error) + func (m MilestonesStats) Total() int64 + type NewIssueOptions struct + Attachments []string + Issue *Issue + LabelIDs []int64 + Repo *repo_model.Repository + type PullRequest struct + AllowMaintainerEdit bool + BaseBranch string + BaseRepo *repo_model.Repository + BaseRepoID int64 + ChangedProtectedFiles []string + CommitsAhead int + CommitsBehind int + ConflictedFiles []string + Flow PullRequestFlow + HasMerged bool + HeadBranch string + HeadCommitID string + HeadRepo *repo_model.Repository + HeadRepoID int64 + ID int64 + Index int64 + Issue *Issue + IssueID int64 + MergeBase string + MergedCommitID string + MergedUnix timeutil.TimeStamp + Merger *user_model.User + MergerID int64 + RequestedReviewers []*user_model.User + RequestedReviewersTeams []*org_model.Team + Status PullRequestStatus + Type PullRequestType + func GetAllUnmergedAgitPullRequestByPoster(ctx context.Context, uid int64) ([]*PullRequest, error) + func GetLatestPullRequestByHeadInfo(ctx context.Context, repoID int64, branch string) (*PullRequest, error) + func GetPullRequestByBaseHeadInfo(ctx context.Context, baseID, headID int64, base, head string) (*PullRequest, error) + func GetPullRequestByID(ctx context.Context, id int64) (*PullRequest, error) + func GetPullRequestByIndex(ctx context.Context, repoID, index int64) (*PullRequest, error) + func GetPullRequestByIssueID(ctx context.Context, issueID int64) (*PullRequest, error) + func GetPullRequestByIssueIDWithNoAttributes(ctx context.Context, issueID int64) (*PullRequest, error) + func GetPullRequestByMergedCommit(ctx context.Context, repoID int64, sha string) (*PullRequest, error) + func GetUnmergedPullRequest(ctx context.Context, headRepoID, baseRepoID int64, ...) (*PullRequest, error) + func (pr *PullRequest) GetApprovalCounts(ctx context.Context) ([]*ReviewCount, error) + func (pr *PullRequest) GetApprovers(ctx context.Context) string + func (pr *PullRequest) GetBaseBranchLink(ctx context.Context) string + func (pr *PullRequest) GetGitHeadRefName() string + func (pr *PullRequest) GetHeadBranchLink(ctx context.Context) string + func (pr *PullRequest) GetReviewCommentsCount(ctx context.Context) int + func (pr *PullRequest) GetWorkInProgressPrefix(ctx context.Context) string + func (pr *PullRequest) IsAgitFlow() bool + func (pr *PullRequest) IsAncestor() bool + func (pr *PullRequest) IsChecking() bool + func (pr *PullRequest) IsEmpty() bool + func (pr *PullRequest) IsFilesConflicted() bool + func (pr *PullRequest) IsFromFork() bool + func (pr *PullRequest) IsSameRepo() bool + func (pr *PullRequest) IsStatusMergeable() bool + func (pr *PullRequest) IsWorkInProgress(ctx context.Context) bool + func (pr *PullRequest) LoadAttributes(ctx context.Context) (err error) + func (pr *PullRequest) LoadBaseRepo(ctx context.Context) (err error) + func (pr *PullRequest) LoadHeadRepo(ctx context.Context) (err error) + func (pr *PullRequest) LoadIssue(ctx context.Context) (err error) + func (pr *PullRequest) LoadRequestedReviewers(ctx context.Context) error + func (pr *PullRequest) LoadRequestedReviewersTeams(ctx context.Context) error + func (pr *PullRequest) Mergeable(ctx context.Context) bool + func (pr *PullRequest) MustHeadUserName(ctx context.Context) string + func (pr *PullRequest) ResolveCrossReferences(ctx context.Context) ([]*Comment, error) + func (pr *PullRequest) String() string + func (pr *PullRequest) UpdateCols(ctx context.Context, cols ...string) error + func (pr *PullRequest) UpdateColsIfNotMerged(ctx context.Context, cols ...string) (int64, error) + func (pr *PullRequest) UpdateCommitDivergence(ctx context.Context, ahead, behind int) error + type PullRequestFlow int + const PullRequestFlowAGit + const PullRequestFlowGithub + type PullRequestList []*PullRequest + func GetPullRequestByIssueIDs(ctx context.Context, issueIDs []int64) (PullRequestList, error) + func GetUnmergedPullRequestsByBaseInfo(ctx context.Context, repoID int64, branch string) (PullRequestList, error) + func GetUnmergedPullRequestsByHeadInfo(ctx context.Context, repoID int64, branch string) (PullRequestList, error) + func PullRequests(ctx context.Context, baseRepoID int64, opts *PullRequestsOptions) (PullRequestList, int64, error) + func (prs PullRequestList) GetIssueIDs() []int64 + func (prs PullRequestList) LoadAttributes(ctx context.Context) error + func (prs PullRequestList) LoadIssues(ctx context.Context) (IssueList, error) + func (prs PullRequestList) LoadRepositories(ctx context.Context) error + func (prs PullRequestList) LoadReviewCommentsCounts(ctx context.Context) (map[int64]int, error) + func (prs PullRequestList) LoadReviews(ctx context.Context) (ReviewList, error) + func (prs PullRequestList) SetBaseRepo(baseRepo *repo_model.Repository) + func (prs PullRequestList) SetHeadRepo(headRepo *repo_model.Repository) + type PullRequestStatus int + const PullRequestStatusAncestor + const PullRequestStatusChecking + const PullRequestStatusConflict + const PullRequestStatusEmpty + const PullRequestStatusError + const PullRequestStatusManuallyMerged + const PullRequestStatusMergeable + type PullRequestType int + const PullRequestGit + const PullRequestGitea + type PullRequestsOptions struct + BaseBranch string + Labels []int64 + MilestoneID int64 + PosterID int64 + SortType string + State string + type PushActionContent struct + CommitIDs []string + IsForcePush bool + type Reaction struct + CommentID int64 + CreatedUnix timeutil.TimeStamp + ID int64 + IssueID int64 + OriginalAuthor string + OriginalAuthorID int64 + Type string + User *user_model.User + UserID int64 + func CreateReaction(ctx context.Context, opts *ReactionOptions) (*Reaction, error) + func (r *Reaction) GetExternalID() int64 + func (r *Reaction) GetExternalName() string + func (r *Reaction) GetUserID() int64 + func (r *Reaction) LoadUser(ctx context.Context) (*user_model.User, error) + func (r *Reaction) RemapExternalUser(externalName string, externalID, userID int64) error + type ReactionList []*Reaction + func FindCommentReactions(ctx context.Context, issueID, commentID int64) (ReactionList, int64, error) + func FindIssueReactions(ctx context.Context, issueID int64, listOptions db.ListOptions) (ReactionList, int64, error) + func FindReactions(ctx context.Context, opts FindReactionsOptions) (ReactionList, int64, error) + func (list ReactionList) GetFirstUsers() string + func (list ReactionList) GetMoreUserCount() int + func (list ReactionList) GroupByType() map[string]ReactionList + func (list ReactionList) HasUser(userID int64) bool + func (list ReactionList) LoadUsers(ctx context.Context, repo *repo_model.Repository) ([]*user_model.User, error) + type ReactionOptions struct + CommentID int64 + DoerID int64 + IssueID int64 + Type string + type Review struct + CodeComments CodeComments + Comments []*Comment + CommitID string + Content string + CreatedUnix timeutil.TimeStamp + Dismissed bool + ID int64 + Issue *Issue + IssueID int64 + Official bool + OriginalAuthor string + OriginalAuthorID int64 + Reviewer *user_model.User + ReviewerID int64 + ReviewerTeam *organization.Team + ReviewerTeamID int64 + Stale bool + Type ReviewType + UpdatedUnix timeutil.TimeStamp + func CreateReview(ctx context.Context, opts CreateReviewOptions) (*Review, error) + func GetCurrentReview(ctx context.Context, reviewer *user_model.User, issue *Issue) (*Review, error) + func GetReviewByID(ctx context.Context, id int64) (*Review, error) + func GetReviewByIssueIDAndUserID(ctx context.Context, issueID, userID int64) (*Review, error) + func GetTeamReviewerByIssueIDAndTeamID(ctx context.Context, issueID, teamID int64) (*Review, error) + func (r *Review) GetCodeCommentsCount(ctx context.Context) int + func (r *Review) GetExternalID() int64 + func (r *Review) GetExternalName() string + func (r *Review) GetUserID() int64 + func (r *Review) HTMLTypeColorClass() string + func (r *Review) HTMLURL(ctx context.Context) string + func (r *Review) LoadAttributes(ctx context.Context) (err error) + func (r *Review) LoadCodeComments(ctx context.Context) (err error) + func (r *Review) LoadIssue(ctx context.Context) (err error) + func (r *Review) LoadReviewer(ctx context.Context) (err error) + func (r *Review) LoadReviewerTeam(ctx context.Context) (err error) + func (r *Review) RemapExternalUser(externalName string, externalID, userID int64) error + func (r *Review) TooltipContent() string + type ReviewCount struct + Count int64 + IssueID int64 + Type ReviewType + type ReviewList []*Review + func FindLatestReviews(ctx context.Context, opts FindReviewOptions) (ReviewList, error) + func FindReviews(ctx context.Context, opts FindReviewOptions) (ReviewList, error) + func GetReviewsByIssueID(ctx context.Context, issueID int64) (latestReviews, migratedOriginalReviews ReviewList, err error) + func (reviews ReviewList) LoadIssues(ctx context.Context) error + func (reviews ReviewList) LoadReviewers(ctx context.Context) error + func (reviews ReviewList) LoadReviewersTeams(ctx context.Context) error + type ReviewType int + const ReviewTypeApprove + const ReviewTypeComment + const ReviewTypePending + const ReviewTypeReject + const ReviewTypeRequest + const ReviewTypeUnknown + func (rt ReviewType) Icon() string + type RoleDescriptor struct + IsPoster bool + RoleInRepo RoleInRepo + type RoleInRepo string + const RoleRepoCollaborator + const RoleRepoContributor + const RoleRepoFirstTimeContributor + const RoleRepoMember + const RoleRepoOwner + func (r RoleInRepo) LocaleHelper(lang translation.Locale) string + func (r RoleInRepo) LocaleString(lang translation.Locale) string + type SpecialDoerNameType string + const SpecialDoerNameCodeOwners + type Stopwatch struct + CreatedUnix timeutil.TimeStamp + ID int64 + IssueID int64 + UserID int64 + func GetUserStopwatches(ctx context.Context, userID int64, listOptions db.ListOptions) ([]*Stopwatch, error) + func (s Stopwatch) Seconds() int64 + type TrackedTime struct + Created time.Time + CreatedUnix int64 + Deleted bool + ID int64 + Issue *Issue + IssueID int64 + Time int64 + User *user_model.User + UserID int64 + func AddTime(ctx context.Context, user *user_model.User, issue *Issue, amount int64, ...) (*TrackedTime, error) + func GetTrackedTimeByID(ctx context.Context, issueID, trackedTimeID int64) (*TrackedTime, error) + func (t *TrackedTime) AfterLoad() + func (t *TrackedTime) LoadAttributes(ctx context.Context) (err error) + type TrackedTimeList []*TrackedTime + func GetTrackedTimes(ctx context.Context, options *FindTrackedTimesOptions) (trackedTimes TrackedTimeList, err error) + func (tl TrackedTimeList) LoadAttributes(ctx context.Context) error + type UserStopwatch struct + StopWatches []*Stopwatch + UserID int64 + func GetUIDsAndStopwatch(ctx context.Context) ([]*UserStopwatch, error) v1.27.0-rc0 Jun 29, 2026