diff options
author | Brecht Van Lommel <brecht@blender.org> | 2023-01-25 05:47:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 23:47:53 -0500 |
commit | c8139c0f642a308b544d2f17e7b728ee6762a0eb (patch) | |
tree | 0b29563e5a3fe8511e18a1eb6f2cfdf2453fc88a /modules/notification/mail/mail.go | |
parent | a31fedd2c2def13e29a962c751c449491d5a1588 (diff) | |
download | gitea-c8139c0f642a308b544d2f17e7b728ee6762a0eb.tar.gz gitea-c8139c0f642a308b544d2f17e7b728ee6762a0eb.zip |
Webhooks: for issue close/reopen action, add commit ID that caused it (#22583)
The `commit_id` property name is the same as equivalent functionality in
GitHub. If the action was not caused by a commit, an empty string is
used.
This can for example be used to automatically add a Resolved label to an
issue fixed by a commit, or clear it when the issue is reopened.
Diffstat (limited to 'modules/notification/mail/mail.go')
-rw-r--r-- | modules/notification/mail/mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/notification/mail/mail.go b/modules/notification/mail/mail.go index 18f7fa22ae..7e54df44c4 100644 --- a/modules/notification/mail/mail.go +++ b/modules/notification/mail/mail.go @@ -54,7 +54,7 @@ func (m *mailNotifier) NotifyNewIssue(ctx context.Context, issue *issues_model.I } } -func (m *mailNotifier) NotifyIssueChangeStatus(ctx context.Context, doer *user_model.User, issue *issues_model.Issue, actionComment *issues_model.Comment, isClosed bool) { +func (m *mailNotifier) NotifyIssueChangeStatus(ctx context.Context, doer *user_model.User, commitID string, issue *issues_model.Issue, actionComment *issues_model.Comment, isClosed bool) { var actionType activities_model.ActionType if issue.IsPull { if isClosed { |