Update auto-comment-pr-raise.yml #1858
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Greetings | |
on: | |
issues: | |
types: [opened] | |
pull_request: | |
types: [opened] | |
pull_request_target: | |
types: [closed] | |
jobs: | |
greet_issues: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'issues' | |
steps: | |
- name: Greet New Issue Contributors | |
uses: actions/[email protected] # Update the version to v1.1.1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
issue-message: "@${{ github.actor }} <h1>It's great having you contribute to this project</h1> Thanks for opening this<strong>Issue 🙌</strong>, Welcome to <strong>Project Guidance 💖</strong> We will review everything and get back to you.<br> Make sure to give a star to this repo before making a fork! Thank you :)" | |
greet_prs: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- name: Greet New PR Contributors | |
uses: actions/[email protected] # Update the version to v1.1.1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
pr-message: "@${{ github.actor }} <h1>It's great having you contribute to this project</h1> Thank you for opening a <strong>Pull Request 🙌</strong>, Welcome to <strong>Project Guidance 💖</strong> We will review everything and get back to you." | |
congratulate: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true | |
steps: | |
- name: Congratulate on every PR merge | |
uses: peter-evans/create-or-update-comment@v1 | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
@${{ github.event.pull_request.user.login }} Hurray, your PR got merged into our Project-Guidance 🥳. Thanks a bunch. Feel free to take another Issue. 💖 |