Skip to content

Commit 60774c0

Browse files
phillipjaddaleax
authored andcommittedSep 22, 2020
build: close stalled issues and PRs with github action
This introduces a GitHub Action workflow to close issues and PRs which has been labelled `stalled` 30 days ago (or more). `stale` labelling and unlabelling of issues and PRs are still done manually by collaborators. Refs nodejs/github-bot#261 PR-URL: #34555 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mary Marchini <oss@mmarchini.me> Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Zeyu Yang <himself65@outlook.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
1 parent 3975dd3 commit 60774c0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
 

‎.github/workflows/close-stalled.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Close stalled issues and PRs
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v3
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
days-before-close: 30
14+
stale-pr-label: stalled
15+
stale-issue-label: stalled
16+
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.
17+
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.
18+
# deactivates automatic removal of stalled label if issue gets any activity
19+
remove-stale-when-updated: false
20+
# deactivates automatic stale labelling as we prefer to do that manually
21+
days-before-stale: -1

0 commit comments

Comments
 (0)
Please sign in to comment.