Skip to content

Commit

Permalink
Merge branch '1Shubham7:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashmita-15 authored Oct 3, 2024
2 parents 5c734aa + 2684eb5 commit 8e06b7b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/thank_contributors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Thank Contributors

on:
pull_request:
t/ypes: [closed]

jobs:
thank_contributor:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Thank the contributor
run: |
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-X POST \
-d "{\"body\": \"Thanks for your contribution @${{ github.event.pull_request.user.login }}\"}" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"

0 comments on commit 8e06b7b

Please sign in to comment.