aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-11-07 04:05:51 +0100
committerGitHub <noreply@github.com>2022-11-06 19:05:51 -0800
commitce198102bda11552397181eab044b10c96645dbd (patch)
treedb62a4ee5e047fbefd24f78348c628d6c1ce7cd0
parent4fd876271a8bc3349fccb14d2e0203af1f9e6698 (diff)
downloadrneovim-ce198102bda11552397181eab044b10c96645dbd.tar.gz
rneovim-ce198102bda11552397181eab044b10c96645dbd.tar.bz2
rneovim-ce198102bda11552397181eab044b10c96645dbd.zip
ci: add stale bot #20884
Stale strategy is to never automatically stale anything. Only mark stale issues or PRs if they get the `needs:response` label. In that case close after 30 days if there hasn't been any activity.
-rw-r--r--.github/workflows/stale.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 0000000000..a10f73531d
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,25 @@
+name: 'Close stale issues and PRs'
+on:
+ schedule:
+ - cron: '30 1 * * *' # Run every day at 01:30
+ workflow_dispatch:
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ permissions:
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/stale@v6
+ with:
+ days-before-close: 30
+ days-before-stale: -1
+ stale-issue-label: needs:response
+ stale-pr-label: needs:response
+ close-issue-message: "This issue has been closed since a request for
+ information has not been answered for 30 days. It can be reopened
+ when the requested information is provided."
+ close-pr-message: "This PR has been closed since a request for
+ changes has not been answered for 30 days. It can be reopened when
+ the requested changes are provided."