Skip to content

Commit 1dec8f5

Browse files
authored
Merge pull request #860 from certbot/notify-merge
Create merged notification for the website repo
2 parents acd9636 + e513e2d commit 1dec8f5

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/merged.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Merge Event
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
permissions: {} # let's not use any permissions we don't need here
8+
jobs:
9+
if_merged:
10+
if: github.event.pull_request.merged == true
11+
runs-on: ubuntu-latest
12+
steps:
13+
# github actions workflows triggered by pull_request_target can be
14+
# dangerous because they run with additional privileges in an environment
15+
# containing values that can be controlled by an attacker. because of
16+
# this, please take extra caution when modifying the steps taken by this
17+
# workflow. for additional information, see
18+
# https://github.com/certbot/certbot/pull/10490
19+
#
20+
# we pin this action to a version tested and audited by certbot's
21+
# maintainers for extra security. the full hash is used as doing so is
22+
# recommended by zizmor
23+
- uses: mattermost/action-mattermost-notify@b7d118e440bf2749cd18a4a8c88e7092e696257a
24+
with:
25+
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_MERGE_WEBHOOK }}
26+
TEXT: >
27+
[${{ github.repository }}] |
28+
[${{ github.event.pull_request.title }}
29+
#${{ github.event.number }}](https://github.com/${{ github.repository }}/pull/${{ github.event.number }})
30+
was merged into ${{ github.event.pull_request.base.ref }} by ${{ github.actor }}

0 commit comments

Comments
 (0)