From 822233db03cd7bce7bc3f2718af8f55911449907 Mon Sep 17 00:00:00 2001 From: Nathan Rockenbach Date: Mon, 11 Aug 2025 04:51:13 +0000 Subject: [PATCH 1/2] Support Model --- README.md | 1 + action.yml | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 74ed5f0..adebc8f 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ Each example includes a complete workflow file that you can copy to your `.githu | `pull_number` | The number of the pull request being reviewed | Yes | `${{ github.event.pull_request.number }}` | | `repo_name` | The full name (owner/repo) of the repository | Yes | `${{ github.repository }}` | | `custom_guidelines` | Custom guidelines to include in PR reviews | No | See [Custom Guidelines](#custom-guidelines) section | +| `model` | Optional model name to use; passed directly to augment agent | No | e.g., openai/gpt-4o-mini | ## How It Works diff --git a/action.yml b/action.yml index f166f08..a3fb029 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,9 @@ inputs: custom_guidelines: description: "Optional custom guidelines to include in the PR review process. These will be added to the default guidelines." required: false + model: + description: "Optional model name to use; passed directly to augmentcode/augment-agent." + required: false runs: using: "composite" @@ -44,7 +47,7 @@ runs: CUSTOM_GUIDELINES: ${{ inputs.custom_guidelines }} - name: Run Augment Agent - uses: augmentcode/augment-agent@6f08f56902d6728a0ffbbb2004c136c06fec8104 # v0.1.0 + uses: augmentcode/augment-agent@v0 with: augment_session_auth: ${{ inputs.augment_session_auth }} github_token: ${{ inputs.github_token }} @@ -52,3 +55,4 @@ runs: pull_number: ${{ inputs.pull_number }} repo_name: ${{ inputs.repo_name }} custom_context: ${{ steps.custom_context.outputs.context }} + model: ${{ inputs.model }} From b25bcc48cc75c950d8170bd2e178937cbf27eeb6 Mon Sep 17 00:00:00 2001 From: Nathan Rockenbach Date: Mon, 11 Aug 2025 18:10:36 +0000 Subject: [PATCH 2/2] Update example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index adebc8f..73d3bd1 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Each example includes a complete workflow file that you can copy to your `.githu | `pull_number` | The number of the pull request being reviewed | Yes | `${{ github.event.pull_request.number }}` | | `repo_name` | The full name (owner/repo) of the repository | Yes | `${{ github.repository }}` | | `custom_guidelines` | Custom guidelines to include in PR reviews | No | See [Custom Guidelines](#custom-guidelines) section | -| `model` | Optional model name to use; passed directly to augment agent | No | e.g., openai/gpt-4o-mini | +| `model` | Optional model name to use; passed directly to augment agent | No | e.g. `sonnet4`, from `auggie --list-models` | ## How It Works