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")