Skip to content

Updated Description #12

Updated Description

Updated Description #12

name: Thank Contributors
on:
pull_request:
types: [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"