Skip to content

Commit 1bdda5a

Browse files
committed
address review comments
1 parent b4354fc commit 1bdda5a

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/opencode.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ on:
55
types: [created]
66
pull_request_review_comment:
77
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
812

913
jobs:
1014
opencode:
1115
if: |
12-
contains(github.event.comment.body, ' /oc') ||
13-
startsWith(github.event.comment.body, '/oc') ||
14-
contains(github.event.comment.body, ' /opencode') ||
15-
startsWith(github.event.comment.body, '/opencode')
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/opencode')) ||
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '/opencode')) ||
18+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '/opencode')) ||
19+
(github.event_name == 'issues' && contains(github.event.issue.body, '/opencode'))
1620
runs-on: ubuntu-latest
1721
permissions:
1822
id-token: write
@@ -26,7 +30,7 @@ jobs:
2630
persist-credentials: false
2731

2832
- name: Run opencode
29-
uses: anomalyco/opencode/github@latest
33+
uses: anomalyco/opencode/github@v1
3034
env:
3135
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
3236
with:

0 commit comments

Comments
 (0)