Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMestery <mestery@pm.me>2021-12-19 19:12:57 +0300
committerGitHub <noreply@github.com>2021-12-19 19:12:57 +0300
commit665b404e6512c6fdfe811e793d4f14bf8f8a7d36 (patch)
treefd2742be8cc00d678ba370d978ff7b014813cfa8 /.github
parent3ac37042d6614be98cc8aa54a34044a71b832925 (diff)
build: improve readability of texts in workflows
PR-URL: https://github.com/nodejs/node/pull/40988 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/authors.yml5
-rw-r--r--.github/workflows/close-stalled.yml10
-rw-r--r--.github/workflows/comment-labeled.yml10
-rw-r--r--.github/workflows/license-builder.yml5
4 files changed, 24 insertions, 6 deletions
diff --git a/.github/workflows/authors.yml b/.github/workflows/authors.yml
index 40d68d9af08..0a14c94f1d7 100644
--- a/.github/workflows/authors.yml
+++ b/.github/workflows/authors.yml
@@ -21,7 +21,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
with:
author: Node.js GitHub Bot <github-bot@iojs.org>
- body: "Here are some new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js`."
+ body: >
+ Here are some new additions to the AUTHORS file.
+ This is an automatically generated PR by the
+ `authors.yml` GitHub Action, which runs `tools/update-authors.js`.
branch: "actions/authors-update" # Custom branch *just* for this Action.
commit-message: "meta: update AUTHORS"
labels: meta
diff --git a/.github/workflows/close-stalled.yml b/.github/workflows/close-stalled.yml
index 1b2fc2b7a6f..9a3dad5621b 100644
--- a/.github/workflows/close-stalled.yml
+++ b/.github/workflows/close-stalled.yml
@@ -3,6 +3,12 @@ on:
schedule:
- cron: "0 0 * * *"
+env:
+ CLOSE_MESSAGE: >
+ Closing this because it has stalled. Feel free to reopen if this issue/PR
+ is still relevant, or to ping the collaborator who labelled it stalled if
+ you have any questions.
+
jobs:
stale:
if: github.repository == 'nodejs/node'
@@ -14,8 +20,8 @@ jobs:
days-before-close: 30
stale-pr-label: stalled
stale-issue-label: stalled
- close-issue-message: Closing this because it has stalled. Feel free to reopen if this issue is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.
- close-pr-message: Closing this because it has stalled. Feel free to reopen if this PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions.
+ close-issue-message: ${{ env.CLOSE_MESSAGE }}
+ close-pr-message: ${{ env.CLOSE_MESSAGE }}
# used to filter issues to check whether or not should be closed, avoids hitting maximum operations allowed if needing to paginate through all open issues
only-labels: stalled
# max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
diff --git a/.github/workflows/comment-labeled.yml b/.github/workflows/comment-labeled.yml
index 69314e75121..2b70802d9ad 100644
--- a/.github/workflows/comment-labeled.yml
+++ b/.github/workflows/comment-labeled.yml
@@ -5,6 +5,12 @@ on:
pull_request_target:
types: [labeled]
+env:
+ 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:
if: github.repository == 'nodejs/node' && github.event.label.name == 'stalled'
@@ -14,7 +20,7 @@ jobs:
env:
NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh issue 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."
+ run: gh issue comment "$NUMBER" --repo ${{ github.repository }} --body "$STALE_MESSAGE"
fastTrack:
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'fast-track'
@@ -23,4 +29,4 @@ jobs:
- 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.pull_request.number }} --repo ${{ github.repository }} --body "$FAST_TRACK_MESSAGE"
diff --git a/.github/workflows/license-builder.yml b/.github/workflows/license-builder.yml
index b959eb89322..0f83e16194b 100644
--- a/.github/workflows/license-builder.yml
+++ b/.github/workflows/license-builder.yml
@@ -22,6 +22,9 @@ jobs:
author: Node.js GitHub Bot <github-bot@iojs.org>
branch: actions/license-builder
title: "doc: run license-builder"
- body: "License is likely out of date. This is an automatically generated PR by the `license-builder.yml` GitHub Action, which runs `license-builder.sh` and submits a new PR or updates an existing PR."
+ body: >
+ License is likely out of date. This is an automatically generated PR by
+ the `license-builder.yml` GitHub Action, which runs `license-builder.sh`
+ and submits a new PR or updates an existing PR.
commit-message: 'doc: run license-builder'
labels: meta