-
Notifications
You must be signed in to change notification settings - Fork 4
Support Model #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 described | Yes | `${{ github.event.pull_request.number }}` | | ||
| | `repo_name` | The full name (owner/repo) of the repository | Yes | `${{ github.repository }}` | | ||
| | `custom_guidelines` | Custom guidelines for PR descriptions (optional) | No | See [Custom Guidelines](#custom-guidelines) section | | ||
| | `model` | Optional model to use for generation | No | e.g. `gpt-4o`, `claude-3-5-sonnet`, etc. | | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice addition. To improve discoverability, consider adding a quick usage example that shows how to set with:
# ...existing inputs
model: gpt-4oThis helps users understand exactly where/how to pass the new input. |
||
| ## How It Works | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,9 @@ inputs: | |
| custom_guidelines: | ||
| description: "Optional custom guidelines to include in PR description generation. Provide additional instructions or requirements specific to your project." | ||
| required: false | ||
| model: | ||
| description: "Optional model to use for generation. Passed directly to augment-agent." | ||
| required: false | ||
|
|
||
| runs: | ||
| using: "composite" | ||
|
|
@@ -44,11 +47,12 @@ 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 }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using a mutable tag ( uses: augmentcode/augment-agent@<commit_sha> # v0This preserves security while still signaling the intended major/minor version. |
||
| github_token: ${{ inputs.github_token }} | ||
| template_directory: "${{ github.action_path }}/templates" | ||
| pull_number: ${{ inputs.pull_number }} | ||
| repo_name: ${{ inputs.repo_name }} | ||
| custom_context: ${{ steps.custom_context.outputs.context }} | ||
| model: ${{ inputs.model }} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example should probably be a model that's publicly available (sonnet4 or gpt5)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I forgot to check this. Will update.