MCPcopy Index your code
hub / github.com/gogs/gogs / GetPullRequestByID

Function GetPullRequestByID

internal/database/pull.go:585–587  ·  view source on GitHub ↗

GetPullRequestByID returns a pull request by given ID.

(id int64)

Source from the content-addressed store, hash-verified

583
584// GetPullRequestByID returns a pull request by given ID.
585func GetPullRequestByID(id int64) (*PullRequest, error) {
586 return getPullRequestByID(x, id)
587}
588
589func getPullRequestByIssueID(e Engine, issueID int64) (*PullRequest, error) {
590 pr := &PullRequest{

Callers 1

TestPullRequestsFunction · 0.85

Calls 1

getPullRequestByIDFunction · 0.85

Tested by 1

TestPullRequestsFunction · 0.68