Skip to content

Commit 9acb8ed

Browse files
Update comment_on_pr.yml
1 parent 6f1d30b commit 9acb8ed

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/comment_on_pr.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,12 @@ jobs:
66
comment:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout Repository
10-
uses: actions/checkout@v2
11-
12-
- name: Comment on Pull Request
13-
uses: actions/github-script@v5
9+
- uses: actions/github-script@v6
1410
with:
15-
github-token: ${{ secrets.GITHUB_TOKEN }}
1611
script: |
17-
github.issues.createComment({
18-
issue_number: context.payload.pull_request.number,
12+
github.rest.issues.createComment({
13+
issue_number: context.issue.number,
1914
owner: context.repo.owner,
2015
repo: context.repo.repo,
21-
body: 'Greetings! This is an automated message from GitHub Actions. :robot:
22-
Your pull request has been received and is awaiting review by the repository owner or a maintainer. This may take some time, so please be patient.
23-
While you wait, you can continue to work on other issues or pull requests, or explore the project further. Or you can simply relax and enjoy your day.
24-
Thank you for your contribution to this project! You are awesome! :star:’
16+
body: 'Greetings! This is an automated message from GitHub Actions. :robot: Your pull request has been received and is awaiting review by the repository owner or a maintainer. This may take some time, so please be patient. While you wait, you can continue to work on other issues or pull requests, or explore the project further. Or you can simply relax and enjoy your day. Thank you for your contribution to this project! You are awesome! :star:'
2517
})

0 commit comments

Comments
 (0)