mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
parent
c6b3c5bcef
commit
67b316a954
16 changed files with 144 additions and 45 deletions
|
@ -11,11 +11,11 @@ import (
|
|||
|
||||
// ChangeStatus changes issue status to open or closed.
|
||||
func ChangeStatus(issue *models.Issue, doer *models.User, isClosed bool) (err error) {
|
||||
err = issue.ChangeStatus(doer, isClosed)
|
||||
comment, err := issue.ChangeStatus(doer, isClosed)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
notification.NotifyIssueChangeStatus(doer, issue, isClosed)
|
||||
notification.NotifyIssueChangeStatus(doer, issue, comment, isClosed)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue