File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # opencode PR review
2+ # AI agent posts reviews to PRs as comments submitted by the GitHub bot
3+
4+ name : opencode
5+
6+ on :
7+ pull_request :
8+ # opened — this runs when a PR is first created
9+ # synchronized — this runs when a new commit is pushed to an already existing PR
10+ types : [opened, synchronize]
11+ issue_comment :
12+ # created — this runs when an issue is created on this repo
13+ types : [created]
14+ pull_request_review_comment :
15+ # created - when a PR review comment is created with /oc or /opencode
16+ types : [created]
17+
18+ concurrency :
19+ group : opencode-review-${{ github.event.pull_request.number || github.event.issue.number }}
20+ cancel-in-progress : true
21+
22+ jobs :
23+ review :
24+ # This workflow will not run if the OPENCODE_GATEWAY_AUDIENCE is not set
25+ # This var is already set at the organization level in ADORSYS-GIS and so workflow typically have it defined
26+ if : ${{ vars.OPENCODE_GATEWAY_AUDIENCE != '' }}
27+ uses : ADORSYS-GIS/ai-governance/.github/workflows/opencode-review.yml@a887e7622d0bec0acff4ce5975229845daa90767
28+ permissions :
29+ id-token : write # mint the GHA OIDC token (gateway auth)
30+ contents : write # checkout + the action's git ops
31+ pull-requests : write # post the review
32+ issues : write # post issue-task / failure comments
33+ with :
34+ audience : ${{ vars.OPENCODE_GATEWAY_AUDIENCE }}
35+ # Models default in the reusable workflow: auto=adorsys-reviewer,
36+ # manual+issue=adorsys-reviewer-pro. Override here only to diverge.
You can’t perform that action at this time.
0 commit comments