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:
authorMichael Dawson <mdawson@devrus.com>2022-02-15 04:50:27 +0300
committerMichael Dawson <mdawson@devrus.com>2022-02-17 22:29:54 +0300
commit3fbc10d7f77b41f0a00108abd9043a0545c13818 (patch)
tree4e502a3cbc234aa7179bfdd41bf0d71fc3b6346e /.github
parent7d75e3f5420ecc41784ea9d3409c405dad756a37 (diff)
build: add action to close stale feature requests
Implement the prodecure outlined in https://github.com/nodejs/node/blob/master/doc/contributing/feature-request-management.md Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/41981 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/close-stale-feature-requests.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml
new file mode 100644
index 00000000000..898dcbdecbb
--- /dev/null
+++ b/.github/workflows/close-stale-feature-requests.yml
@@ -0,0 +1,47 @@
+name: Close stale feature requests
+on:
+ schedule:
+ # Run every day at 1:00 AM UTC.
+ - cron: 0 1 * * *
+
+# yamllint disable rule:empty-lines
+env:
+ CLOSE_MESSAGE: >
+ There has been no activity on this feature request
+ and it is being closed. If you feel closing this issue is not the
+ right thing to do, please leave a comment.
+
+
+ For more information on how the project manages
+ feature requests, please consult the
+ [feature request management document](https://github.com/nodejs/node/blob/HEAD/doc/guides/feature-request-management.md).
+
+ WARN_MESSAGE: >
+ There has been no activity on this feature request for
+ 5 months and it is unlikely to be implemented.
+ It will be closed 6 months after the last non-automated comment.
+
+
+ For more information on how the project manages
+ feature requests, please consult the
+ [feature request management document](https://github.com/nodejs/node/blob/HEAD/doc/guides/feature-request-management.md).
+# yamllint enable
+
+jobs:
+ stale:
+ if: github.repository == 'nodejs/node'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v4
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ days-before-stale: 150
+ days-before-close: 30
+ stale-issue-label: stalled
+ close-issue-message: ${{ env.CLOSE_MESSAGE }}
+ stale-issue-message: ${{ env.WARN_MESSAGE }}
+ only-labels: feature request
+ exempt-pr-labels: never-stale
+ # max requests it will send per run to the GitHub API before it deliberately exits to avoid hitting API rate limits
+ operations-per-run: 1
+ remove-stale-when-updated: true