Skip to content

Commit

Permalink
Update comment_on_pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrinank-Bhowmick authored Sep 10, 2023
1 parent 6f1d30b commit 9acb8ed
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/comment_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,12 @@ jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Comment on Pull Request
uses: actions/github-script@v5
- uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.issues.createComment({
issue_number: context.payload.pull_request.number,
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
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:’
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:'
})

0 comments on commit 9acb8ed

Please sign in to comment.