@@ -14,13 +14,13 @@ import (
14
14
)
15
15
16
16
// ChangeStatus changes issue status to open or closed.
17
- func ChangeStatus (issue * issues_model.Issue , doer * user_model.User , closed bool ) error {
18
- return changeStatusCtx (db .DefaultContext , issue , doer , closed )
17
+ func ChangeStatus (issue * issues_model.Issue , doer * user_model.User , commitID string , closed bool ) error {
18
+ return changeStatusCtx (db .DefaultContext , issue , doer , commitID , closed )
19
19
}
20
20
21
21
// changeStatusCtx changes issue status to open or closed.
22
22
// TODO: if context is not db.DefaultContext we get a deadlock!!!
23
- func changeStatusCtx (ctx context.Context , issue * issues_model.Issue , doer * user_model.User , closed bool ) error {
23
+ func changeStatusCtx (ctx context.Context , issue * issues_model.Issue , doer * user_model.User , commitID string , closed bool ) error {
24
24
comment , err := issues_model .ChangeIssueStatus (ctx , issue , doer , closed )
25
25
if err != nil {
26
26
if issues_model .IsErrDependenciesLeft (err ) && closed {
@@ -37,7 +37,7 @@ func changeStatusCtx(ctx context.Context, issue *issues_model.Issue, doer *user_
37
37
}
38
38
}
39
39
40
- notification .NotifyIssueChangeStatus (ctx , doer , issue , comment , closed )
40
+ notification .NotifyIssueChangeStatus (ctx , doer , commitID , issue , comment , closed )
41
41
42
42
return nil
43
43
}
0 commit comments