A new GitHub Action has been created in the augment-agent repository that can react to user comments with emoji reactions. This action is designed to be used in workflows that respond to PR review comments and issue comments.
- Repository:
augmentcode/augment-agent - Branch:
feature/comment-reaction-action - Action Path:
comment-reaction/ - Commit:
826fcce
- comment-reaction/action.yml - Action metadata and composite action definition
- comment-reaction/src/index.ts - TypeScript implementation
- comment-reaction/package.json - Node.js dependencies
- comment-reaction/tsconfig.json - TypeScript configuration
- comment-reaction/README.md - Documentation and usage examples
- comment-reaction/package-lock.json - Dependency lock file
- ✅ React to PR review comments
- ✅ React to issue comments
- ✅ Support for all 8 GitHub reaction types (+1, -1, laugh, confused, heart, hooray, rocket, eyes)
- ✅ Configurable reaction type with sensible default (eyes)
- ✅ Full TypeScript implementation with type safety
- ✅ Comprehensive error handling and logging
- ✅ Output indicating success/failure
- name: React to original comment with eyes
uses: augmentcode/augment-agent/comment-reaction@feature/comment-reaction-action
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
comment_id: ${{ github.event.comment.id }}
event_name: ${{ github.event_name }}- name: React to original comment with rocket
uses: augmentcode/augment-agent/comment-reaction@feature/comment-reaction-action
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
comment_id: ${{ github.event.comment.id }}
event_name: ${{ github.event_name }}
reaction: rocketReplace the existing actions/github-script@v7 step (lines 31-53) with:
- name: React to original comment with eyes
uses: augmentcode/augment-agent/comment-reaction@feature/comment-reaction-action
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
comment_id: ${{ github.event.comment.id }}
event_name: ${{ github.event_name }}
reaction: eyes| Input | Description | Required | Default |
|---|---|---|---|
github_token |
GitHub token for API access | Yes | - |
comment_id |
The ID of the comment to react to | Yes | - |
event_name |
The GitHub event name | Yes | - |
reaction |
The reaction type to add | No | eyes |
| Output | Description |
|---|---|
success |
Whether the reaction was successfully added (true or false) |
+1- 👍-1- 👎laugh- 😄confused- 😕heart- ❤️hooray- 🎉rocket- 🚀eyes- 👀
- Test the Action: You can now reference this action in the
bumpy/.github/workflows/assistant.ymlfile - Merge to Main: Once tested, merge the
feature/comment-reaction-actionbranch tomain - Create a Tag: After merging, create a version tag (e.g.,
v1.0.0) for stable references - Update References: Update workflow files to use the tag instead of the branch name
name: Augment Agent
on:
pull_request_review_comment:
types: [created]
issue_comment:
types: [created]
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
actions: read
jobs:
auggie-review-comment:
if: |
contains(github.event.comment.body, '@augment') ||
contains(github.event.comment.body, '@Augment')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
- name: React to original comment with eyes
uses: augmentcode/augment-agent/comment-reaction@feature/comment-reaction-action
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
comment_id: ${{ github.event.comment.id }}
event_name: ${{ github.event_name }}
reaction: eyes
# ... rest of your workflow stepsFor issues or questions, please refer to the README.md in the comment-reaction directory or create an issue in the augment-agent repository.