From 22b50adb17b16b8b0fbf5c5069f727e1657f28a6 Mon Sep 17 00:00:00 2001 From: Tommaso Barbugli Date: Tue, 24 Nov 2026 17:31:47 +0100 Subject: [PATCH] ci(regen): ignore cross-repository PRs when looking up regen/auto --- .github/workflows/regen.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/regen.yml b/.github/workflows/regen.yml index 332e996..05a0689 100644 --- a/.github/workflows/regen.yml +++ b/.github/workflows/regen.yml @@ -146,7 +146,7 @@ jobs: # An open PR a human marked breaking or not breaking is not regenerated, so the judgement stays with the spec it was made on. num= - pr=$(gh pr list --head "$branch" --base "$base" --state open --json number,title,labels,headRefOid --jq '.[0] // empty') + pr=$(gh pr list --head "$branch" --base "$base" --state open --json number,title,labels,headRefOid,isCrossRepository --jq 'map(select(.isCrossRepository | not)) | .[0] // empty') if [ -n "$pr" ]; then num=$(jq -r .number <<< "$pr") title=$(jq -r .title <<< "$pr")