From a008da46ae81f40ca689dd6c896aeee0691b6e3c Mon Sep 17 00:00:00 2001 From: Amp Date: Tue, 8 Sep 2026 16:20:25 +0000 Subject: [PATCH] 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: Ivan Milev --- .github/workflows/codeboarding-review.yml | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/codeboarding-review.yml diff --git a/.github/workflows/codeboarding-review.yml b/.github/workflows/codeboarding-review.yml new file mode 100644 index 000000000..dc09088e6 --- /dev/null +++ b/.github/workflows/codeboarding-review.yml @@ -0,0 +1,36 @@ +name: CodeBoarding review + +on: + pull_request: + types: [opened, reopened, ready_for_review, synchronize] + issue_comment: + types: [created] + +permissions: + contents: read + actions: read + pull-requests: write + issues: write + id-token: write + +concurrency: + group: codeboarding-${{ github.event.pull_request.number || github.event.issue.number }} + cancel-in-progress: false + +jobs: + review: + if: > + (github.event_name == 'pull_request' && github.event.pull_request.draft == false && + github.event.pull_request.head.repo.full_name == github.repository) || + (github.event_name == 'issue_comment' && github.event.issue.pull_request != null && + startsWith(github.event.comment.body, '/codeboarding') && + contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + # Exercise https://github.com/CodeBoarding/CodeBoarding-action/pull/120. + - uses: CodeBoarding/CodeBoarding-action@refs/pull/120/head + with: + mode: review + llm: hosted + depth_level: 3