mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 08:08:57 -05:00
Fix indentation, traiiling spaces, and missing newline issues in preparation for linting. PR-URL: https://github.com/nodejs/node/pull/40007 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
name: Comment on issues and PRs when labelled
|
|
on:
|
|
issues:
|
|
types: [labeled]
|
|
pull_request_target:
|
|
types: [labeled]
|
|
|
|
jobs:
|
|
staleComment:
|
|
if: github.repository == 'nodejs/node' && github.event.label.name == 'stalled'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Post stalled comment
|
|
env:
|
|
COMMENTS_URL: ${{ github.event.issue.comments_url || github.event.pull_request.comments_url }}
|
|
run: |
|
|
curl -X POST $COMMENTS_URL \
|
|
-H "Content-Type: application/json" \
|
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
--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." }'
|
|
|
|
fastTrack:
|
|
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Request Fast-Track
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "Fast-track has been requested by @${{ github.actor }}. Please 👍 to approve."
|