docs: add use_github_token to example (#9120)
publish-github-action / publish (push) Has been cancelled
Update Nix Hashes / update-flake (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (macos-15-intel, x86_64-darwin) (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (macos-latest, aarch64-darwin) (push) Has been cancelled
Update Nix Hashes / commit-node-modules-hashes (push) Has been cancelled
publish-github-action / publish (push) Has been cancelled
Update Nix Hashes / update-flake (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (blacksmith-4vcpu-ubuntu-2404, x86_64-linux) (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (blacksmith-4vcpu-ubuntu-2404-arm, aarch64-linux) (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (macos-15-intel, x86_64-darwin) (push) Has been cancelled
Update Nix Hashes / compute-node-modules-hash (macos-latest, aarch64-darwin) (push) Has been cancelled
Update Nix Hashes / commit-node-modules-hashes (push) Has been cancelled
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: rekram1-node <rekram1-node@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
dcd20e9f51
commit
c9d5e677fc
@@ -91,8 +91,10 @@ This will walk you through installing the GitHub app, creating the workflow, and
|
|||||||
uses: anomalyco/opencode/github@latest
|
uses: anomalyco/opencode/github@latest
|
||||||
env:
|
env:
|
||||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
model: anthropic/claude-sonnet-4-20250514
|
model: anthropic/claude-sonnet-4-20250514
|
||||||
|
use_github_token: true
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Store the API keys in secrets. In your organization or project **settings**, expand **Secrets and variables** on the left and select **Actions**. Add the required API keys.
|
3. Store the API keys in secrets. In your organization or project **settings**, expand **Secrets and variables** on the left and select **Actions**. Add the required API keys.
|
||||||
|
|||||||
@@ -180,8 +180,10 @@ jobs:
|
|||||||
- uses: anomalyco/opencode/github@latest
|
- uses: anomalyco/opencode/github@latest
|
||||||
env:
|
env:
|
||||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
model: anthropic/claude-sonnet-4-20250514
|
model: anthropic/claude-sonnet-4-20250514
|
||||||
|
use_github_token: true
|
||||||
prompt: |
|
prompt: |
|
||||||
Review this pull request:
|
Review this pull request:
|
||||||
- Check for code quality issues
|
- Check for code quality issues
|
||||||
|
|||||||
Reference in New Issue
Block a user