-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat actions to maintain readability and consistency between different actions. Update some used actions (e.g. `actions/upload-artifact`). Rename misc action. Add more (complete) `path-ignores`. Use GitHub CLI when possible.
- Loading branch information
Showing
19 changed files
with
161 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
name: "authors update" | ||
on: | ||
workflow_dispatch: | ||
name: authors update | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
authors_update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' # this is required to actually get all the authors | ||
- run: "tools/update-authors.js" # run the AUTHORS tool | ||
fetch-depth: 0 # this is required to actually get all the authors | ||
- run: tools/update-authors.js # run the AUTHORS tool | ||
- uses: gr2m/create-or-update-pull-request-action@v1 # create a PR or update the Action's existing PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
title: "meta: update AUTHORS" | ||
body: "If this PR exists, there's presumably new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js` and submits a new PR or updates an existing PR.\n\nPlease note that there might be duplicate entries. If there are, please remove them and add the duplicate emails to .mailmap directly to this PR." | ||
branch: "actions/authors-update" # custom branch *just* for this Action. | ||
commit-message: "meta: update AUTHORS" | ||
title: 'meta: update AUTHORS' | ||
commit-message: 'meta: update AUTHORS' | ||
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | ||
body: > | ||
If this PR exists, there's presumably new additions to the AUTHORS file. | ||
This is an automatically generated PR by the `authors.yml` GitHub Action, | ||
which runs `tools/update-authors.js` and submits a new PR or updates an existing PR. | ||
Please note that there might be duplicate entries. If there are, please remove them and | ||
add the duplicate emails to .mailmap directly to this PR. | ||
branch: actions/authors-update # custom branch *just* for this Action. | ||
labels: meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
name: Comment on issues and PRs when labelled | ||
name: Comment on issues and PRs when labeled | ||
on: | ||
issues: | ||
types: [labeled] | ||
pull_request_target: | ||
types: [labeled] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
STALE_MESSAGE: >- | ||
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. | ||
FAST_TRACK_MESSAGE: Fast-track has been requested by @${{ github.actor }}. Please 👍 to approve. | ||
|
||
jobs: | ||
staleComment: | ||
stale-comment: | ||
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 }} | ||
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." }' | ||
--data "{ \"body\": \"$STALE_MESSAGE\" }" | ||
fastTrack: | ||
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track' | ||
fast-track: | ||
if: github.repository == 'nodejs/node' && github.event.issue.pull_request && 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." | ||
run: gh pr comment ${{ github.event.issue.number }} --repo ${{ github.repository }} --body "$FAST_TRACK_MESSAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.