@ -229,7 +229,7 @@ func (m *webhookNotifier) NotifyIssueChangeTitle(ctx context.Context, doer *user
}
}
}
}
func ( m * webhookNotifier ) NotifyIssueChangeStatus ( ctx context . Context , doer * user_model . User , issue * issues_model . Issue , actionComment * issues_model . Comment , isClosed bool ) {
func ( m * webhookNotifier ) NotifyIssueChangeStatus ( ctx context . Context , doer * user_model . User , commitID string , issue * issues_model . Issue , actionComment * issues_model . Comment , isClosed bool ) {
mode , _ := access_model . AccessLevel ( ctx , issue . Poster , issue . Repo )
mode , _ := access_model . AccessLevel ( ctx , issue . Poster , issue . Repo )
var err error
var err error
if issue . IsPull {
if issue . IsPull {
@ -243,6 +243,7 @@ func (m *webhookNotifier) NotifyIssueChangeStatus(ctx context.Context, doer *use
PullRequest : convert . ToAPIPullRequest ( ctx , issue . PullRequest , nil ) ,
PullRequest : convert . ToAPIPullRequest ( ctx , issue . PullRequest , nil ) ,
Repository : convert . ToRepo ( ctx , issue . Repo , mode ) ,
Repository : convert . ToRepo ( ctx , issue . Repo , mode ) ,
Sender : convert . ToUser ( doer , nil ) ,
Sender : convert . ToUser ( doer , nil ) ,
CommitID : commitID ,
}
}
if isClosed {
if isClosed {
apiPullRequest . Action = api . HookIssueClosed
apiPullRequest . Action = api . HookIssueClosed
@ -256,6 +257,7 @@ func (m *webhookNotifier) NotifyIssueChangeStatus(ctx context.Context, doer *use
Issue : convert . ToAPIIssue ( ctx , issue ) ,
Issue : convert . ToAPIIssue ( ctx , issue ) ,
Repository : convert . ToRepo ( ctx , issue . Repo , mode ) ,
Repository : convert . ToRepo ( ctx , issue . Repo , mode ) ,
Sender : convert . ToUser ( doer , nil ) ,
Sender : convert . ToUser ( doer , nil ) ,
CommitID : commitID ,
}
}
if isClosed {
if isClosed {
apiIssue . Action = api . HookIssueClosed
apiIssue . Action = api . HookIssueClosed