diff --git a/.github/workflows/autocomment-pr-merge.yml b/.github/workflows/autocomment-pr-merge.yml index c11211a..6a8547d 100644 --- a/.github/workflows/autocomment-pr-merge.yml +++ b/.github/workflows/autocomment-pr-merge.yml @@ -4,17 +4,33 @@ on: pull_request: types: [closed] +permissions: + issues: write + pull-requests: write + jobs: - notify: - if: github.event.pull_request.merged == true + comment: runs-on: ubuntu-latest + permissions: + pull-requests: write + if: github.event.pull_request.merged == true steps: - - name: Post merge comment + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Add Comment to Issue env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - curl -H "Authorization: token $GITHUB_TOKEN" \ - -X POST \ - -d '{"body":"🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀"}' \ - "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" \ No newline at end of file + COMMENT=$(cat <Invitation sent to join the GitHub Organisation. Welcome to the community 🎉

Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see. You can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/Recode-Hive/people

" + repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + comment: | + Invitation sent to join the GitHub Organisation. Welcome to the community 🎉

+ Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see. You can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/Recode-Hive/people

+ Tips for practising:

+ Customise your GitHub profile, here is a course on that: https://www.udemy.com/course/make-your-github-profile-stand-out/
+ Practice repo, instructions on how to add your name to the README https://github.com/Recode-Hive/hacktoberfest-practice
+ Remember contributing to open source is not just about code, it's about collaboration, communication and adding value
+ I hope that helps env: INVITE_TOKEN: ${{ secrets.INVITE_TOKEN }}