Skip to content

Commit ddbf872

Browse files
authored
Merge pull request #500 from Mayank4352/dev
Fix Greet Contributor Workflow
2 parents 62de758 + 3025c13 commit ddbf872

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/greet_contributors.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Greet Contributors
22

3-
on:
3+
on:
44
issues:
55
types: [opened, closed]
6-
pull_request:
6+
pull_request_target:
77
types: [opened, closed]
88

99
permissions:
1010
issues: write
1111
pull-requests: write
12+
contents: read
1213

1314
jobs:
1415
greet:
@@ -25,7 +26,7 @@ jobs:
2526
👋 **Hello @${{ github.actor }}!**
2627
Thank you for opening this issue. Our team will review it soon. 🚀
2728
- If you can, please provide more details like steps to reproduce, expected vs. actual behavior, and screenshots (if applicable). 📌
28-
29+
2930
We appreciate your contribution! 💡
3031
reactions: heart
3132

@@ -40,13 +41,13 @@ jobs:
4041
This issue has been resolved or is no longer relevant.
4142
- If you have further questions, feel free to open a new issue. 💡
4243
43-
Thanks for helping improve the project! 🚀
44+
Thanks for helping improve the project! 🚀
4445
reactions: |
4546
heart
4647
hooray
4748
4849
- name: Handle Opened PRs
49-
if: github.event_name == 'pull_request' && github.event.action == 'opened'
50+
if: github.event_name == 'pull_request_target' && github.event.action == 'opened'
5051
uses: peter-evans/create-or-update-comment@v4
5152
with:
5253
token: ${{ secrets.GITHUB_TOKEN }}
@@ -57,13 +58,13 @@ jobs:
5758
- Please ensure your PR follows the contribution guidelines. ✅
5859
- All automated tests should pass before merging. 🔄
5960
- If this PR fixes an issue, link it in the description. 🔗
60-
61-
We appreciate your contribution! 🚀
61+
62+
We appreciate your contribution! 🚀
6263
reactions: |
6364
heart
6465
6566
- name: Handle Closed PRs
66-
if: github.event_name == 'pull_request' && github.event.action == 'closed'
67+
if: github.event_name == 'pull_request_target' && github.event.action == 'closed'
6768
uses: peter-evans/create-or-update-comment@v4
6869
with:
6970
token: ${{ secrets.GITHUB_TOKEN }}
@@ -73,7 +74,7 @@ jobs:
7374
- If this PR was merged: **Congratulations! Your contribution is now part of the project.** 🚀
7475
- If this PR was closed without merging: **Don’t worry! You can always improve it and submit again.** 💪
7576
76-
We appreciate your effort and look forward to more contributions from you! 🤝
77+
We appreciate your effort and look forward to more contributions from you! 🤝
7778
reactions: |
7879
heart
7980
hooray

0 commit comments

Comments
 (0)