Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Each example includes a complete workflow file that you can copy to your `.githu
| `model` | Optional model name to use; passed directly to augment agent | No | e.g. `sonnet4`, from `auggie --list-models` |
| `rules` | JSON array of rule file paths forwarded to augment agent as repeated `--rules` flags | No | `'[".augment/rules.md"]'` |
| `mcp_configs` | JSON array of MCP config file paths forwarded as repeated `--mcp-config` flags | No | `'[".augment/mcp.json"]'` |
| `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) |

## How It Works

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ inputs:
mcp_configs:
description: "Optional JSON array of MCP config file paths to forward as --mcp-config flags to augmentcode/augment-agent."
required: false
fetch_depth:
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."
required: false
default: "0"

runs:
using: "composite"
Expand All @@ -39,7 +43,7 @@ runs:
with:
token: ${{ inputs.github_token }}
ref: refs/pull/${{ inputs.pull_number }}/head
fetch-depth: 0
fetch-depth: ${{ inputs.fetch_depth }}

- name: Prepare Custom Context
id: custom_context
Expand Down
Loading