move goose issue solver to opus (#6233)
This commit is contained in:
@@ -96,7 +96,7 @@ jobs:
|
|||||||
github.event_name == 'workflow_dispatch' ||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
(!github.event.issue.pull_request &&
|
(!github.event.issue.pull_request &&
|
||||||
startsWith(github.event.comment.body, '/goose') &&
|
startsWith(github.event.comment.body, '/goose') &&
|
||||||
contains(fromJSON('["OWNER", "MEMBER"]'), github.event.comment.author_association))
|
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association))
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -105,12 +105,21 @@ jobs:
|
|||||||
image: ghcr.io/block/goose:latest
|
image: ghcr.io/block/goose:latest
|
||||||
options: --user root
|
options: --user root
|
||||||
env:
|
env:
|
||||||
GOOSE_PROVIDER: ${{ vars.GOOSE_PROVIDER || 'openai' }}
|
GOOSE_PROVIDER: ${{ vars.GOOSE_PROVIDER || 'anthropic' }}
|
||||||
GOOSE_MODEL: ${{ vars.GOOSE_MODEL || 'gpt-5.1' }}
|
GOOSE_MODEL: ${{ vars.GOOSE_MODEL || 'claude-opus-4-5' }}
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||||
HOME: /tmp/goose-home
|
HOME: /tmp/goose-home
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Acknowledge trigger
|
||||||
|
if: github.event_name == 'issue_comment'
|
||||||
|
run: |
|
||||||
|
curl -sL -X POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
|
"https://api.github.com/repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions" \
|
||||||
|
-d '{"content":"eyes"}'
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
if: |
|
if: |
|
||||||
github.event.issue.pull_request &&
|
github.event.issue.pull_request &&
|
||||||
startsWith(github.event.comment.body, '/goose') &&
|
startsWith(github.event.comment.body, '/goose') &&
|
||||||
contains(fromJSON('["OWNER", "MEMBER"]'), github.event.comment.author_association)
|
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
|||||||
Reference in New Issue
Block a user