Skip to content

Commit

Permalink
Update pr_comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dishamodi0910 authored Oct 3, 2023
1 parent af7f0d7 commit ce19446
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@ on:
- opened

jobs:
run:
comment:
runs-on: ubuntu-latest
steps:
- name: Comment on Opening Pull Request
uses: wow-actions/auto-comment@v1
uses: actions/github-script@v4
with:
github-token : ${{ secrets.APIVerse_SECRET }}
pullRequestOpened: |
@{{ author }}, Thank you for creating PR! We will review it super soon. 😇❣️
As we continue to evolve and innovate, we encourage you to share your ideas, feedback, and code to help us push the boundaries of what's possible in the world of APIs🚀.
We hope you have followed [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md).
Thank you for being an essential part of our community. Together, we'll keep building amazing things!
Don’t forget to ⭐ our repository!
Happy Coding!✨
Will See you soon❣️
github-token: ${{ secrets.APIVerse_SECRET }}
script: |
const {owner, repo, number} = context.issue;
const commentAuthor = context.payload.sender.login;
const commentBody = `Hey @${ commentAuthor }, Thank you for creating PR! We will review it super soon. 😇❣️
As we continue to evolve and innovate, we encourage you to share your ideas, feedback, and code to help us push the boundaries of what's possible in the world of APIs🚀.
We hope you have followed [CONTRIBUTING GUIDELINES](../blob/master/CONTRIBUTING.md).
Thank you for being an essential part of our community. Together, we'll keep building amazing things!
Don’t forget to ⭐ our repository!
Happy Coding!✨
Will See you soon❣️ `;
await github.issues.createComment({owner, repo, issue_number : number, body: commentBody});
console.log('Commented on PR');

0 comments on commit ce19446

Please sign in to comment.