Skip to content

Commit 001ed4a

Browse files
authored
Feat/opencode review (#110)
* added an opencode.yaml file
1 parent 68d3ab5 commit 001ed4a

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/opencode.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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.

0 commit comments

Comments
 (0)