You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add optional fetch_depth parameter for performance optimization
- Add fetch_depth input parameter to action.yml with default value of '0'
- Document fetch_depth in README.md inputs table
- Add Performance Optimization section to README.md explaining shallow clone benefits
- Enables users to use shallow clones (fetch-depth: 1) for faster checkouts in large repos
- Maintains backward compatibility with default full history behavior
- Apply prettier formatting fixes to README.md
| `augment_api_token` | API token for Augment services (store as secret) | No\*\* | `${{ secrets.AUGMENT_API_TOKEN }}` |
91
+
| `augment_api_url` | Augment API endpoint URL (store as variable) | No\*\* | `${{ vars.AUGMENT_API_URL }}` |
92
+
| `github_token` | GitHub token with `repo` and `user:email` scopes. | No | `${{ secrets.GITHUB_TOKEN }}` |
93
+
| `instruction` | Direct instruction text for simple commands | No\* | `"Generate PR description"` |
94
+
| `instruction_file` | Path to file with detailed instructions | No\* | `/tmp/instruction.txt` |
95
+
| `template_directory` | Path to template directory for dynamic instructions | No\* | `.github/templates` |
96
+
| `template_name` | Template file name (default: prompt.njk) | No | `pr-review.njk` |
97
+
| `pull_number` | PR number for template context extraction | No | `${{ github.event.pull_request.number }}` |
98
+
| `repo_name` | Repository name for template context | No | `${{ github.repository }}` |
99
+
| `custom_context` | Additional JSON context for templates | No | `'{"priority": "high"}'` |
100
+
| `model` | Model to use; passed through to auggie as --model | No | e.g. `sonnet4`, from `auggie --list-models` |
101
+
| `rules` | JSON array of rules file paths (each forwarded as individual `--rules` flags) | No | `'[".github/augment/rules.md"]'` |
102
+
| `mcp_configs` | JSON array of MCP config file paths (each forwarded as individual `--mcp-config` flags) | No | `'[".augment/mcp/config.json"]'` |
103
+
| `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) |
85
104
86
105
\*Either `instruction`, `instruction_file`, or `template_directory` must be provided.
Copy file name to clipboardExpand all lines: action.yml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,10 @@ inputs:
49
49
mcp_configs:
50
50
description: "JSON array of MCP config file paths. Each entry is forwarded to auggie as an individual --mcp-config flag."
51
51
required: false
52
+
fetch_depth:
53
+
description: "Number of commits to fetch. Use '0' for full history (default), '1' for shallow clone (latest commit only), or any positive integer for a specific depth."
0 commit comments