build: use gh cli in workflows file · nodejs/node@7756e1c · GitHub
Skip to content

Commit 7756e1c

Browse files
Mesteerydanielleadams
authored andcommitted
build: use gh cli in workflows file
PR-URL: #40985 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent ac025f1 commit 7756e1c

3 files changed

Lines changed: 17 additions & 58 deletions

File tree

.github/workflows/auto-start-ci.yml

Lines changed: 6 additions & 29 deletions

.github/workflows/comment-labeled.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,9 @@ jobs:
1212
steps:
1313
- name: Post stalled comment
1414
env:
15-
COMMENTS_URL: ${{ github.event.issue.comments_url || github.event.pull_request.comments_url }}
16-
run: |
17-
curl -X POST $COMMENTS_URL \
18-
-H "Content-Type: application/json" \
19-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
20-
--data '{ "body": "This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open." }'
15+
NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
run: gh pr comment "$NUMBER" --repo ${{ github.repository }} --body "This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open."
2118

2219
fastTrack:
2320
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track'

.github/workflows/commit-queue.yml

Lines changed: 8 additions & 23 deletions

0 commit comments

Comments
 (0)