From c5af6b9ae60ab4eb976b2242b609b68e611aa6a6 Mon Sep 17 00:00:00 2001 From: CaliBrain Date: Thu, 22 Oct 2026 03:20:45 -0400 Subject: [PATCH] ci(jules): review the whole PR diff, not just the latest push (#1529) jules-pr-reviewer v0.0.2 reviewed only before...head on synchronize. After "Update branch" merged main into fork PRs, that range was main's commits, so of their own changes. v0.0.3 of the calibrain fork always reviews the PR's full diff. Also correct the fork workflow comment: jules-forks has no required reviewers by design, so runs don't wait for approval. --- .github/workflows/jules-pr-reviewer-forks.yml | 10 +++++----- .github/workflows/jules-pr-reviewer.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/jules-pr-reviewer-forks.yml b/.github/workflows/jules-pr-reviewer-forks.yml index b4f0b127..6aba7a68 100644 --- a/.github/workflows/jules-pr-reviewer-forks.yml +++ b/.github/workflows/jules-pr-reviewer-forks.yml @@ -4,9 +4,9 @@ name: Jules PR Review (forks) # That is safe only while nothing here checks out or runs the PR's code: the # action reads the diff through the API. Upstream jules-pr-reviewer refuses # this event, hence the calibrain fork. -# Each run waits for a maintainer to approve it on the jules-forks environment -# (Settings → Environments → required reviewers), so every fork push is looked -# at before Jules reads it, and strangers can't spend the Jules session quota. +# The jules-forks environment has no required reviewers on purpose, so fork +# pushes are reviewed straight away; adding reviewers there (Settings → +# Environments) would make each run wait for a maintainer's approval. on: pull_request_target: types: [opened, synchronize, reopened, ready_for_review] @@ -19,7 +19,7 @@ concurrency: jobs: review: - # Drafts are skipped here rather than by the action, so they don't ask for approval + # Drafts are skipped here rather than by the action, so they never start a job if: github.event.pull_request.head.repo.full_name != github.repository && !github.event.pull_request.draft runs-on: ubuntu-latest environment: @@ -30,7 +30,7 @@ jobs: contents: read checks: write steps: - - uses: calibrain/jules-pr-reviewer@9061503ac181f0da714bcfa9f16939dd6148f688 # v0.0.2 + - uses: calibrain/jules-pr-reviewer@v0.0.3 with: jules_api_key: ${{ secrets.JULES_API_KEY }} github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/jules-pr-reviewer.yml b/.github/workflows/jules-pr-reviewer.yml index c11be5e1..5f9826d9 100644 --- a/.github/workflows/jules-pr-reviewer.yml +++ b/.github/workflows/jules-pr-reviewer.yml @@ -21,7 +21,7 @@ jobs: contents: read checks: write steps: - - uses: calibrain/jules-pr-reviewer@9061503ac181f0da714bcfa9f16939dd6148f688 # v0.0.2 + - uses: calibrain/jules-pr-reviewer@v0.0.3 with: jules_api_key: ${{ secrets.JULES_API_KEY }} github_token: ${{ secrets.GITHUB_TOKEN }}