File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,10 +13,6 @@ inputs:
1313 description : " Share the opencode session (defaults to true for public repos)"
1414 required : false
1515
16- prompt:
17- description: "Prompt to run"
18- required: false
19-
2016runs :
2117 using : " composite"
2218 steps :
2723 - name : Run opencode
2824 shell : bash
2925 id : run_opencode
30- run: opencode run -p "${{ inputs.prompt }}" || true
26+ run : opencode rgithub run
3127 env :
3228 MODEL : ${{ inputs.model }}
3329 SHARE : ${{ inputs.share }}
Original file line number Diff line number Diff line change 66
77 pull_request :
88
9- pull_request_comment :
10- types : [created]
11-
129 pull_request_review :
1310 types : [submitted]
1411
3128 uses : actions/checkout@v5
3229
3330 - name : Run opencode
34- uses : sst/opencode/github@latest
35- if : github.event_name != 'pull_request'
36- env :
37- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38- with :
39- model : github-copilot/gpt-4.1
40-
41- - name : Run opencode (for pull request)
42- uses : ./github/actions/opencode
43- if : github.event_name == 'pull_request'
31+ uses : ./.github/actions/opencode
4432 env :
4533 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4634 with :
4735 model : github-copilot/gpt-4.1
48- prompt : ${{ github.event.comment.body }}
You can’t perform that action at this time.
0 commit comments