From 69b2e87c2a1a6ad5f210a9a9470c475069297d9f Mon Sep 17 00:00:00 2001 From: shalim786 <56446648+shalim786@users.noreply.github.com> Date: Thu, 26 Nov 2026 18:45:01 +0200 Subject: [PATCH 1/2] Add the ai-review label workflow Co-Authored-By: Claude Fable 5.2 --- .github/workflows/ai-review.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ai-review.yml diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml new file mode 100644 index 0000000..a24f2ca --- /dev/null +++ b/.github/workflows/ai-review.yml @@ -0,0 +1,21 @@ +name: AI review + +# Asks the shared automated reviewer (agentmail-to/ai-review) for an approval when an engineer adds the +# `ai-review` label. Adding the label is the engineer's statement that they reviewed the change and accept +# responsibility for merging it on automated approval alone. The reviewer's workflow, script and prompt run +# from that repository's `main`, so a PR here cannot change its own reviewer, and the PR's code is never +# checked out or run. +on: + pull_request_target: + types: [labeled, synchronize] + +permissions: + contents: read + pull-requests: read + +jobs: + review: + uses: agentmail-to/ai-review/.github/workflows/review.yml@main + secrets: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + AI_REVIEWER_PRIVATE_KEY: ${{ secrets.AI_REVIEWER_PRIVATE_KEY }} From d6edbb408d7b346a942ab1cc6a67048653ffb636 Mon Sep 17 00:00:00 2001 From: shalim786 <56446648+shalim786@users.noreply.github.com> Date: Thu, 26 Nov 2026 18:45:11 +0200 Subject: [PATCH 2/2] Keep the ai-review workflow across generated releases Co-Authored-By: Claude Fable 5.2 --- .fernignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.fernignore b/.fernignore index 6dd7e5a..bd5bc57 100644 --- a/.fernignore +++ b/.fernignore @@ -11,3 +11,6 @@ SECURITY.md # entry itself; it is repeated here because this patch replaces the whole # file, and dropping the line would remove protection the generator added. cli/agentmail/custom.rs + +# The automated-review workflow is hand-added; the generator would delete it as an unknown file. +.github/workflows/ai-review.yml