Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkershner6/reaction-action
A GitHub Action to React to an Issue or Pull Request comment
https://github.com/dkershner6/reaction-action
github-actions
Last synced: 29 days ago
JSON representation
A GitHub Action to React to an Issue or Pull Request comment
- Host: GitHub
- URL: https://github.com/dkershner6/reaction-action
- Owner: dkershner6
- License: apache-2.0
- Created: 2021-06-01T21:05:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T00:12:55.000Z (5 months ago)
- Last Synced: 2024-10-15T13:06:40.699Z (about 1 month ago)
- Topics: github-actions
- Language: TypeScript
- Homepage:
- Size: 1000 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Issue or Pull Request Comment Reaction
React to any comment with the GitHub Reaction types.
## Usage
```yaml
- name: React to comment
uses: dkershner6/reaction-action@v2 # You can also use a specific version, e.g. v2.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 +1
```## Valid reactions (if this is incomplete, please open an issue)
```typescript
const VALID_REACTIONS = [
'+1',
'-1',
'laugh',
'confused',
'heart',
'hooray',
'rocket',
'eyes',
];
```## Contributing
All contributions are welcome, please open an issue or pull request.
To use this repository:
1. `npm i -g pnpm` (if don't have pnpm installed)
2. `pnpm i`
3. `npx projen` (this will ensure everything is setup correctly, and you can run this command at any time)
4. Good to make your changes!
5. You can run `npx projen build` at any time to build the project.