A GitHub Action that runs the Auggie AI agent to respond to issue and PR comments.
name: Auggie Boton:
issue_comment:
types: [created]pull_request_review_comment:
types: [created]jobs:
auggie:
runs-on: ubuntu-latestif: contains(github.event.comment.body, '@auggie')steps:
- uses: actions/checkout@v4
- uses: augmentcode/augment-action@mainwith:
prompt: ${{ github.event.comment.body }}augment_api_key: ${{ secrets.AUGMENT_API_KEY }}| Input | Description | Required |
|---|---|---|
prompt | The prompt to send to the Auggie agent | Yes |
augment_api_key | Augment API key for authentication | No |
augment_api_url | Augment API URL (default: https://api.augmentcode.com) | No |
workspace_root | Workspace root path for Auggie to index | No |
The Auggie agent will:
- React to your comment with 👀 to acknowledge the request
- Post a comment with its response
- Update the comment in real-time as it works through the task
Trigger Auggie when someone mentions @auggie in a comment:
on:
issue_comment:
types: [created]pull_request_review_comment:
types: [created]jobs:
auggie:
runs-on: ubuntu-latestif: contains(github.event.comment.body, '@auggie')steps:
- uses: actions/checkout@v4
- uses: augmentcode/augment-action@mainwith:
prompt: ${{ github.event.comment.body }}augment_api_key: ${{ secrets.AUGMENT_API_KEY }}Automatically review every new pull request:
on:
pull_request:
types: [opened, synchronize]jobs:
auggie:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: augmentcode/augment-action@mainwith:
prompt: "Review this PR for bugs, security issues, and code quality"augment_api_key: ${{ secrets.AUGMENT_API_KEY }}Automatically analyze and label new issues:
on:
issues:
types: [opened]jobs:
auggie:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v4
- uses: augmentcode/augment-action@mainwith:
prompt: "Analyze this issue, suggest relevant labels, and provide initial guidance"augment_api_key: ${{ secrets.AUGMENT_API_KEY }}