MCPcopy Create free account
hub / github.com/gogs/gogs / LoadIssue

Method LoadIssue

internal/database/pull.go:118–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116}
117
118func (pr *PullRequest) LoadIssue() (err error) {
119 if pr.Issue != nil {
120 return nil
121 }
122
123 pr.Issue, err = GetIssueByID(pr.IssueID)
124 return err
125}
126
127// This method assumes following fields have been assigned with valid values:
128// Required - Issue, BaseRepo

Callers 3

ChangeMilestoneAssignFunction · 0.80
ClearLabelsMethod · 0.80

Calls 1

GetIssueByIDFunction · 0.85

Tested by

no test coverage detected