From 88da9351d8d0696d71d3398ce786462b6e4da0d6 Mon Sep 17 00:00:00 2001 From: Fiachra Corcoran Date: Wed, 24 Jun 2026 15:14:39 +0100 Subject: [PATCH] Allow copilot action add bot reviewer Signed-off-by: Fiachra Corcoran --- .github/workflows/copilot-review.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/copilot-review.yaml b/.github/workflows/copilot-review.yaml index ee3cbaf47..02d334414 100644 --- a/.github/workflows/copilot-review.yaml +++ b/.github/workflows/copilot-review.yaml @@ -21,14 +21,14 @@ name: Copilot Code Review on: - pull_request: + pull_request_target: types: [opened, ready_for_review, reopened] permissions: {} jobs: request-copilot-review: - if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name + if: github.event.pull_request.draft == false runs-on: ubuntu-latest permissions: pull-requests: write @@ -52,6 +52,6 @@ jobs: if (error.status === 422) { core.info(`Copilot review already requested or cannot be requested: ${error.message}`); } else { - core.warning(`Could not request Copilot review: ${error.message}`); + throw error; } }