This is an automated email from the ASF dual-hosted git repository.
aaronai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/master by this push:
new cd82ade GitHub Action: support to close stale issues/PRs (#36)
cd82ade is described below
commit cd82adeba610ae1a194385da0a2b6bb9c392b53f
Author: Aaron Ai <[email protected]>
AuthorDate: Sat Jul 9 14:12:48 2022 +0800
GitHub Action: support to close stale issues/PRs (#36)
---
.github/workflows/stale.yml | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 0000000..531c709
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,28 @@
+name: Close Stale Issues/PRs
+
+permissions:
+ issues: write
+ pull-requests: write
+
+on:
+ schedule:
+ - cron: "0 0 * * *"
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v5
+ with:
+ days-before-issue-stale: 30
+ days-before-issue-close: 3
+ exempt-issue-labels: "no stale,high priority"
+ stale-issue-label: "stale"
+ stale-issue-message: "This issue is stale because it has been open
for 30 days with no activity. It will be closed in 3 days if no further
activity occurs."
+ close-issue-message: "This issue was closed because it has been
inactive for 3 days since being marked as stale."
+ days-before-pr-stale: 30
+ days-before-pr-close: 3
+ exempt-pr-labels: "no stale,high priority"
+ stale-pr-label: "stale"
+ stale-pr-message: "This PR is stale because it has been open for 30
days with no activity. It will be closed in 3 days if no further activity
occurs. If you wish not to mark it as stale, please leave a comment in this PR."
+ close-pr-message: "This PR was closed because it has been inactive
for 3 days since being marked as stale."