"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "models/issue_assignees.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

issue_assignees.go  (gitea-1.13.1):issue_assignees.go  (gitea-1.13.2)
skipping to change at line 85 skipping to change at line 85
// IsUserAssignedToIssue returns true when the user is assigned to the issue // IsUserAssignedToIssue returns true when the user is assigned to the issue
func IsUserAssignedToIssue(issue *Issue, user *User) (isAssigned bool, err error ) { func IsUserAssignedToIssue(issue *Issue, user *User) (isAssigned bool, err error ) {
return isUserAssignedToIssue(x, issue, user) return isUserAssignedToIssue(x, issue, user)
} }
func isUserAssignedToIssue(e Engine, issue *Issue, user *User) (isAssigned bool, err error) { func isUserAssignedToIssue(e Engine, issue *Issue, user *User) (isAssigned bool, err error) {
return e.Get(&IssueAssignees{IssueID: issue.ID, AssigneeID: user.ID}) return e.Get(&IssueAssignees{IssueID: issue.ID, AssigneeID: user.ID})
} }
// ClearAssigneeByUserID deletes all assignments of an user // ClearAssigneeByUserID deletes all assignments of an user
func clearAssigneeByUserID(sess *xorm.Session, userID int64) (err error) { func clearAssigneeByUserID(sess Engine, userID int64) (err error) {
_, err = sess.Delete(&IssueAssignees{AssigneeID: userID}) _, err = sess.Delete(&IssueAssignees{AssigneeID: userID})
return return
} }
// ToggleAssignee changes a user between assigned and not assigned for this issu e, and make issue comment for it. // ToggleAssignee changes a user between assigned and not assigned for this issu e, and make issue comment for it.
func (issue *Issue) ToggleAssignee(doer *User, assigneeID int64) (removed bool, comment *Comment, err error) { func (issue *Issue) ToggleAssignee(doer *User, assigneeID int64) (removed bool, comment *Comment, err error) {
sess := x.NewSession() sess := x.NewSession()
defer sess.Close() defer sess.Close()
if err := sess.Begin(); err != nil { if err := sess.Begin(); err != nil {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)