Skip to content

Commit c5f124d

Browse files
Update PR welcome workflow for improved functionality
Added GitHub token usage for authentication and adjusted script to use `context.issue.number`. Also updated the comment body for better formatting and consistency.
1 parent 3bb8ced commit c5f124d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pr-welcome.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ jobs:
2727
#if: env.AUTHOR != 'HichemTab-tech'
2828
uses: actions/github-script@v6
2929
with:
30+
github-token: ${{secrets.GITHUB_TOKEN}}
3031
script: |
3132
github.issues.createComment({
32-
issue_number: context.payload.pull_request.number,
33+
issue_number: context.issue.number,
3334
owner: context.repo.owner,
3435
repo: context.repo.repo,
35-
body: "Thank you @${{ env.AUTHOR }} for your contribution! 🎉\n\nYour PR has been received and is awaiting review. Please be patient while we check it. 🚀"
36+
body: "👋 Thank you @${{ env.AUTHOR }} for your contribution! 🎉\n\nYour PR has been received and is awaiting review. Please be patient while we check it. 🚀"
3637
});

0 commit comments

Comments
 (0)