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

Function NewIssueUsers

internal/database/issue.go:1092–1104  ·  view source on GitHub ↗

NewIssueUsers adds new issue-user relations for new issue of repository.

(repo *Repository, issue *Issue)

Source from the content-addressed store, hash-verified

1090
1091// NewIssueUsers adds new issue-user relations for new issue of repository.
1092func NewIssueUsers(repo *Repository, issue *Issue) (err error) {
1093 sess := x.NewSession()
1094 defer sess.Close()
1095 if err = sess.Begin(); err != nil {
1096 return err
1097 }
1098
1099 if err = newIssueUsers(sess, repo, issue); err != nil {
1100 return err
1101 }
1102
1103 return sess.Commit()
1104}
1105
1106// PairsContains returns true when pairs list contains given issue.
1107func PairsContains(ius []*IssueUser, issueID, uid int64) int {

Callers

nothing calls this directly

Calls 1

newIssueUsersFunction · 0.85

Tested by

no test coverage detected