Skip to content

Commit 165ee0c

Browse files
committed
tools: update repo name for CQ
PR-URL: nodejs/node#57675 Reviewed-By: Luigi Pinca <[email protected]>
1 parent 0bdb996 commit 165ee0c

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/commit-queue.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
get_mergeable_prs:
2626
permissions:
2727
pull-requests: read
28-
if: github.repository == 'nodejs/node'
28+
if: github.repository == 'nodejs/node-auto-test'
2929
runs-on: ubuntu-latest
3030
outputs:
3131
numbers: ${{ steps.get_mergeable_prs.outputs.numbers }}
@@ -55,20 +55,19 @@ jobs:
5555
env:
5656
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
commitQueue:
58+
permissions:
59+
pull-requests: write
5860
needs: get_mergeable_prs
5961
if: needs.get_mergeable_prs.outputs.numbers != ''
6062
runs-on: ubuntu-latest
6163
steps:
6264
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6365
with:
64-
# Needs the whole git history for ncu to work
65-
# See https://github.com/nodejs/node-core-utils/pull/486
66-
fetch-depth: 0
6766
# A personal token is required because pushing with GITHUB_TOKEN will
6867
# prevent commits from running CI after they land. It needs
6968
# to be set here because `checkout` configures GitHub authentication
7069
# for push as well.
71-
token: ${{ secrets.GH_USER_TOKEN }}
70+
token: ${{ secrets.GITHUB_TOKEN }}
7271

7372
# Install dependencies
7473
- name: Install Node.js
@@ -94,10 +93,10 @@ jobs:
9493
ncu-config set owner "${OWNER}"
9594
env:
9695
USERNAME: ${{ secrets.JENKINS_USER }}
97-
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
96+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9897
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}
9998

10099
- name: Start the Commit Queue
101100
run: ./tools/actions/commit-queue.sh ${{ env.OWNER }} ${{ env.REPOSITORY }} ${{ needs.get_mergeable_prs.outputs.numbers }}
102101
env:
103-
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
102+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

tools/actions/commit-queue.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ for pr in "$@"; do
8686
commit_body=$(git log -1 --pretty='format:%b')
8787
commit_head=$(grep 'Fetched commits as' output | cut -d. -f3 | xargs git rev-parse)
8888

89-
if ! gh pr merge "$pr" --squash --body "$commit_body" --subject "$commit_title" --match-head-commit "$commit_head" > output; then
89+
if ! gh pr merge "$pr" --squash --body "$commit_body" --subject "$commit_title" --match-head-commit "$commit_head" --admin > output; then
9090
commit_queue_failed "$pr"
9191
continue
9292
fi

0 commit comments

Comments
 (0)