This repository for the Thank you note Action and uses semanti
A Github action to comment on a created pull request, with a thanking note and a GIF.
You can use the action from this example repository:
name: Thank you action
on:
pull_request:
types: [opened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: https://github.com/asaadoov/thank-you-action@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TENOR_TOKEN: ${{ secrets.TENOR_TOKEN }}
GITHUB_TOKEN
- Required Allows the Action to authenticte with the GitHub API to create the release.TENOR_TOKEN
- Required Allows the Action to authenticte with theTenor API
to get the GIF.
The action function is defined in action.js
.
The Action will run the index.js
file which verifies the required secrets are set, get the GIF URL and then comment the thanks note on the PR.