Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/close-superseded-automation-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
types: [opened]

permissions:
pull-requests: write
pull-requests: write # Required to close PRs
contents: write # Required for branch deletion

jobs:
close-superseded:
Expand Down Expand Up @@ -77,6 +78,11 @@ jobs:
--json number \
--jq '.[].number')

if [[ -z "$OLD_PRS" ]]; then
echo "No superseded PRs found. Nothing to close."
exit 0
fi

for PR_NUMBER in $OLD_PRS; do
if [[ "$PR_NUMBER" -eq "$CURRENT_PR" ]]; then
continue
Expand Down