Skip to content

Commit 5ed5d92

Browse files
ci: add review-only CodeBoarding workflow using action PR 120
Amp-Thread-ID: https://ampcode.com/threads/T-01a081b5-9435-7555-a03c-caf44e0d0dbf Co-authored-by: Amp <amp@ampcode.com>
1 parent b4a4087 commit 5ed5d92

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CodeBoarding review
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, ready_for_review, synchronize]
6+
issue_comment:
7+
types: [created]
8+
9+
permissions:
10+
contents: read
11+
actions: read
12+
pull-requests: write
13+
issues: write
14+
id-token: write
15+
16+
concurrency:
17+
group: codeboarding-${{ github.event.pull_request.number || github.event.issue.number }}
18+
cancel-in-progress: false
19+
20+
jobs:
21+
review:
22+
if: >
23+
(github.event_name == 'pull_request' && github.event.pull_request.draft == false &&
24+
github.event.pull_request.head.repo.full_name == github.repository) ||
25+
(github.event_name == 'issue_comment' && github.event.issue.pull_request != null &&
26+
startsWith(github.event.comment.body, '/codeboarding') &&
27+
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 60
30+
steps:
31+
# Exercise https://github.com/CodeBoarding/CodeBoarding-action/pull/120.
32+
- uses: CodeBoarding/CodeBoarding-action@refs/pull/120/head
33+
with:
34+
mode: review
35+
llm: hosted
36+
depth_level: 3

0 commit comments

Comments
 (0)