-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 1.63 KB
/
Copy pathpr-merged.yml
File metadata and controls
42 lines (37 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: PR - Merged
# Warning, this job is running on pull_request_target and therefore has access to issue content.
# Don't add any steps that act on external code.
on:
pull_request_target:
branches: [main]
types: [closed]
permissions:
pull-requests: write
jobs:
pr-merged:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Thank you
# Only show this for first time contributors. Repo members and past contributors are
# hopefully already there.
if: |
github.base_ref == 'main' &&
github.event.pull_request.author_association != 'OWNER' &&
github.event.pull_request.author_association != 'MEMBER' &&
github.event.pull_request.author_association != 'COLLABORATOR' &&
github.event.pull_request.author_association != 'CONTRIBUTOR'
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ github.token }}
MESSAGE: >-
Thanks for your contribution! Your pull request has been merged and is being deployed to
our staging instance. If all goes well we'll include it in the next production deployment.
We appreciate the time and effort you put into improving Thunderbird Pro. If you haven't
already, you're welcome to join our Matrix chat for contributors. It's where we discuss
development and help each other out.
https://matrix.to/#/#tb-services:mozilla.org
Hope to see you there! 🌩️🐦🚀
run: |
gh pr comment "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --body "$MESSAGE"