Skip to content

Commit c0a319e

Browse files
authored
Allow notification of two reviewers being assigned to a PR and two issue assignees (#838)
This is a duplicate of certbot/certbot#10345 for this repo
1 parent babb4e1 commit c0a319e

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/assigned.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Issue Assigned
33
on:
44
issues:
55
types: [assigned]
6-
7-
pull_request_target:
8-
types: [assigned]
96
jobs:
107
send-mattermost-message:
118
runs-on: ubuntu-latest
@@ -14,4 +11,4 @@ jobs:
1411
with:
1512
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_ASSIGN_WEBHOOK }}
1613
TEXT: >
17-
${{ github.event.issue.assignee.login || github.event.pull_request.assignee.login }} assigned to "${{ github.event.issue.title || github.event.pull_request.title }}": ${{ github.event.issue.html_url || github.event.pull_request.html_url }}
14+
${{ github.event.assignee.login }} assigned to "${{ github.event.issue.title }}": ${{ github.event.issue.html_url }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Review Requested
2+
3+
on:
4+
pull_request_target:
5+
types: [review_requested]
6+
jobs:
7+
send-mattermost-message:
8+
# Don't notify for the interim step of certbot/eff-devs being assigned
9+
if: ${{ github.event.requested_reviewer.login != ''}}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: mattermost/action-mattermost-notify@master
13+
with:
14+
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_ASSIGN_WEBHOOK }}
15+
TEXT: >
16+
Review requested from ${{ github.event.requested_reviewer.login }} for "${{ github.event.pull_request.title }}": ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)