{"id":46453427,"url":"https://github.com/augmentcode/review-pr","last_synced_at":"2026-03-06T01:02:11.813Z","repository":{"id":308572855,"uuid":"1029430643","full_name":"augmentcode/review-pr","owner":"augmentcode","description":"Get feedback faster with reviews from Auggie","archived":false,"fork":false,"pushed_at":"2025-11-27T04:29:22.000Z","size":40,"stargazers_count":27,"open_issues_count":5,"forks_count":8,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-29T03:20:46.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.augmentcode.com","language":"Nunjucks","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/augmentcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-31T03:36:59.000Z","updated_at":"2025-11-28T00:25:11.000Z","dependencies_parsed_at":"2025-08-06T18:11:20.716Z","dependency_job_id":"bc983a40-15a9-4b18-865e-5ae7fc36e576","html_url":"https://github.com/augmentcode/review-pr","commit_stats":null,"previous_names":["augmentcode/review-pr"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/augmentcode/review-pr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augmentcode%2Freview-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augmentcode%2Freview-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augmentcode%2Freview-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augmentcode%2Freview-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/augmentcode","download_url":"https://codeload.github.com/augmentcode/review-pr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/augmentcode%2Freview-pr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-06T01:02:11.225Z","updated_at":"2026-03-06T01:02:11.785Z","avatar_url":"https://github.com/augmentcode.png","language":"Nunjucks","readme":"# Augment Review PR GitHub Action\n\nAI-powered pull request reviews using Auggie. This action automatically analyzes your PR changes and generates comprehensive, informative reviews.\n\n## Quick Start\n\n### 1. Get Your Augment API Credentials\n\nFirst, you'll need to obtain your Augment Authentication information from your local Auggie session:\n\nExample session JSON:\n\n```json\n{\n  \"accessToken\": \"your-api-token-here\",\n  \"tenantURL\": \"https://your-tenant.api.augmentcode.com\"\n}\n```\n\nThere are 2 ways to get the credentials:\n\n- Run `auggie tokens print`\n  - Copy the JSON after `TOKEN=`\n- Copy the credentials stored in your Augment cache directory, defaulting to `~/.augment/session.json`\n\n\u003e **⚠️ Security Warning**: These tokens are OAuth tokens tied to your personal Augment account and provide access to your Augment services. They are not tied to a team or enterprise. Treat them as sensitive credentials:\n\u003e\n\u003e - Never commit them to version control\n\u003e - Only store them in secure locations (like GitHub secrets)\n\u003e - Don't share them in plain text or expose them in logs\n\u003e - If a token is compromised, immediately revoke it using `auggie tokens revoke`\n\n### 2. Set Up the GitHub Repository Secret\n\nYou need to add your Augment credentials to your GitHub repository:\n\n#### Adding Secret\n\n1. **Navigate to your repository** on GitHub\n2. **Go to Settings** → **Secrets and variables** → **Actions**\n3. **Add the following**:\n   - **Secret**: Click \"New repository secret\"\n     - Name: `AUGMENT_SESSION_AUTH`\n     - Value: The JSON value from step 1\n\n\u003e **Need more help?** For detailed instructions on managing GitHub secrets, see GitHub's official documentation:\n\u003e\n\u003e - [Using secrets in GitHub Actions](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions)\n\n### 3. Create Your Workflow File\n\nAdd a new workflow file to your repository's `.github/workflows/` directory and merge it.\n\n### Example Workflows\n\nFor complete workflow examples, see the [`example-workflows/`](./example-workflows/) directory which contains:\n\n- **[Basic PR Review](./example-workflows/basic-pr-review.yml)** - Simple setup for all new PRs\n- **[Custom Guidelines Review](./example-workflows/custom-guidelines-review.yml)** - Demonstrates custom guidelines usage\n- **[Draft PR Review](./example-workflows/draft-pr-review.yml)** - Only review draft PRs\n- **[Feature Branch Review](./example-workflows/feature-branch-review.yml)** - Target specific branch patterns with labeling\n- **[Robust PR Review](./example-workflows/robust-pr-review.yml)** - Includes error handling and fallback notifications\n- **[On-Demand Review](./example-workflows/on-demand-review.yml)** - Triggered by adding the `augment_review` label\n\nEach example includes a complete workflow file that you can copy to your `.github/workflows/` directory and customize for your needs.\n\n## Features\n\n- **Automatic PR Analysis**: Analyzes code changes, file modifications, and diff content\n- **Intelligent Reviews**: Generates comprehensive PR reviews using AI\n- **Context-Aware**: Understands your codebase structure and change patterns\n- **GitHub Integration**: Seamlessly updates PR reviews via GitHub API\n\n## Inputs\n\n| Input                  | Description                                                                                                                       | Required | Example                                             |\n| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -------- | --------------------------------------------------- |\n| `augment_session_auth` | Augment session authentication JSON containing accessToken and tenantURL (store as secret)                                        | Yes      | `${{ secrets.AUGMENT_SESSION_AUTH }}`               |\n| `github_token`         | GitHub token with `repo` scopes                                                                                                   | Yes      | `${{ secrets.GITHUB_TOKEN }}`                       |\n| `pull_number`          | The number of the pull request being reviewed                                                                                     | Yes      | `${{ github.event.pull_request.number }}`           |\n| `repo_name`            | The full name (owner/repo) of the repository                                                                                      | Yes      | `${{ github.repository }}`                          |\n| `custom_guidelines`    | Custom guidelines to include in PR reviews                                                                                        | No       | See [Custom Guidelines](#custom-guidelines) section |\n| `model`                | Optional model name to use; passed directly to augment agent                                                                      | No       | e.g. `sonnet4`, from `auggie --list-models`         |\n| `rules`                | JSON array of rule file paths forwarded to augment agent as repeated `--rules` flags                                              | No       | `'[\".augment/rules.md\"]'`                           |\n| `mcp_configs`          | JSON array of MCP config file paths forwarded as repeated `--mcp-config` flags                                                    | No       | `'[\".augment/mcp.json\"]'`                           |\n| `fetch_depth`          | Number of commits to fetch. Use `0` for full history (default), `1` for shallow clone, or any positive integer for specific depth | No       | `1` (shallow), `50` (last 50 commits), `0` (full)   |\n\n## How It Works\n\n1. **Checkout**: Checks out the PR head to access the complete codebase\n2. **Data Gathering**: Fetches PR metadata, changed files, and diff content from GitHub API\n3. **Template Rendering**: Uses Nunjucks templates to create a structured instruction for the AI\n4. **AI Processing**: Calls the Augment Agent to analyze the changes and generate a review\n5. **PR Review Submission**: The Augment Agent submits a single GitHub review containing a brief summary and multiple inline comments anchored to specific lines in the PR diff (including suggestion blocks where appropriate)\n\n## Custom Guidelines\n\nYou can provide custom guidelines to tailor the PR review process to your team's specific needs. These guidelines will be added to the default review criteria.\n\n### Basic Usage\n\n```yaml\n- name: Generate PR Review\n  uses: augmentcode/review-pr@v0\n  with:\n    augment_session_auth: ${{ secrets.AUGMENT_SESSION_AUTH }}\n    github_token: ${{ secrets.GITHUB_TOKEN }}\n    pull_number: ${{ github.event.pull_request.number }}\n    repo_name: ${{ github.repository }}\n    custom_guidelines: |\n      - Focus on TypeScript type safety and avoid using `any`\n      - Ensure all new functions have JSDoc comments\n      - Check for proper error handling in async functions\n      - Verify that new components follow our design system\n```\n\n## Permissions\n\nThe action requires the following GitHub token permissions:\n\n```yaml\npermissions:\n  contents: read # To checkout the repository and read files\n  pull-requests: write # To update PR descriptions\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugmentcode%2Freview-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugmentcode%2Freview-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugmentcode%2Freview-pr/lists"}