From 9f39d6745367329e91916d048f7f2d4080b81e9f Mon Sep 17 00:00:00 2001 From: Avinesh Tripathi <73980067+AvineshTripathi@users.noreply.github.com> Date: Mon, 23 Oct 2023 21:55:57 +0530 Subject: [PATCH] Create hacktoberfest-comments.yaml --- .github/workflows/hacktoberfest-comments.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/hacktoberfest-comments.yaml diff --git a/.github/workflows/hacktoberfest-comments.yaml b/.github/workflows/hacktoberfest-comments.yaml new file mode 100644 index 000000000..2b0de2c17 --- /dev/null +++ b/.github/workflows/hacktoberfest-comments.yaml @@ -0,0 +1,20 @@ +on: + pull_request: + types: [closed] + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Comment on PR + if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'hacktoberfest-accepted') }} + uses: peter-evans/create-or-update-comment@v1 + with: + token: ${{ secrets.GH_ACTIONS }} + issue-number: ${{ github.event.pull_request.number }} + body: | + A heartfelt thank you, @${{ github.event.pull_request.user.login }}, for your enthusiastic involvement in Hacktoberfest! To express our gratitude, we've crafted a special virtual badge just for you. Don't hesitate to showcase it on your social media profiles and share the love by mentioning Komiser in your posts. Your contribution means the world to us! + ![Image](assets/gh/image.png)