React to any comment with the GitHub Reaction types.
- name: React to comment
uses: dkershner6/reaction-action@v3 # You can also use a specific version, e.g. v3.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commentId: 1234 # Optional if the trigger is a comment. Use another action to find this otherwise.
reaction: "hooray" # Optional, defaults to +1Version 3 updates the GitHub Actions runtime from Node 20 to Node 24. This is a breaking change required by GitHub's Node 20 deprecation.
- v3 — runs on
node24(recommended) - v2 — runs on
node20(deprecated; pin@v2only if you must stay on Node 20 temporarily)
const VALID_REACTIONS = [
'+1',
'-1',
'laugh',
'confused',
'heart',
'hooray',
'rocket',
'eyes',
];All contributions are welcome, please open an issue or pull request.
To use this repository:
npm i -g pnpm(if don't have pnpm installed)pnpm inpx projen(this will ensure everything is setup correctly, and you can run this command at any time)- Good to make your changes!
- You can run
npx projen buildat any time to build the project.