GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: delay removal of `commit-queue` label · nodejs/node@7d9dcfa

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools/actions
    • commit-queue.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/actions/commit-queue.sh‎

Copy file name to clipboardExpand all lines: tools/actions/commit-queue.sh
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COMMIT_QUEUE_FAILED_LABEL="commit-queue-failed"
1515
commit_queue_failed() {
1616
pr=$1
1717

18-
gh pr edit "$pr" --add-label "${COMMIT_QUEUE_FAILED_LABEL}"
18+
gh pr edit "$pr" --add-label "${COMMIT_QUEUE_FAILED_LABEL}" --remove-label "${COMMIT_QUEUE_LABEL}"
1919

2020
# shellcheck disable=SC2154
2121
cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
@@ -47,9 +47,6 @@ for pr in "$@"; do
4747
continue
4848
fi
4949

50-
# Delete the commit queue label
51-
gh pr edit "$pr" --remove-label "$COMMIT_QUEUE_LABEL"
52-
5350
if jq -e 'map(.name) | index("commit-queue-squash")' < labels.json; then
5451
MULTIPLE_COMMIT_POLICY="--fixupAll"
5552
elif jq -e 'map(.name) | index("commit-queue-rebase")' < labels.json; then
@@ -114,6 +111,9 @@ for pr in "$@"; do
114111
gh pr comment "$pr" --body "Landed in $commits"
115112

116113
[ -z "$MULTIPLE_COMMIT_POLICY" ] && gh pr close "$pr"
114+
115+
# Delete the commit queue label (but ignore errors, it's no big deal if a closed PR still has the label)
116+
gh pr edit "$pr" --remove-label "$COMMIT_QUEUE_LABEL" || true
117117
done
118118

119119
rm -f labels.json

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.