You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/autocomment-pr-merge.yml
+23-7Lines changed: 23 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,33 @@ on:
4
4
pull_request:
5
5
types: [closed]
6
6
7
+
permissions:
8
+
issues: write
9
+
pull-requests: write
10
+
7
11
jobs:
8
-
notify:
9
-
if: github.event.pull_request.merged == true
12
+
comment:
10
13
runs-on: ubuntu-latest
14
+
permissions:
15
+
pull-requests: write
16
+
if: github.event.pull_request.merged == true
11
17
12
18
steps:
13
-
- name: Post merge comment
19
+
- name: Checkout Repository
20
+
uses: actions/checkout@v2
21
+
22
+
- name: Add Comment to Issue
14
23
env:
15
24
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16
25
run: |
17
-
curl -H "Authorization: token $GITHUB_TOKEN" \
18
-
-X POST \
19
-
-d '{"body":"🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀"}' \
"body": "🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀"
0 commit comments