Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

GH actions: stale workflow (#4613) [ci skip]

Juerg Ba41f18a4cea4
diff --git a/.github/stale.yml b/.github/stale.yml
deleted file mode 100644
index 152dd737..00000000
--- a/.github/stale.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-# Number of days of inactivity before an issue becomes stale
-daysUntilStale: 120
-# Number of days of inactivity before a stale issue is closed
-daysUntilClose: 14
-# Issues with these labels will never be considered stale
-exemptLabels:
- - browser
- - chore
- - confirmed-bug
- - developer-experience
- - documentation
- - faq
- - feature
- - future
- - good-first-issue
- - help wanted
- - needs-review
- - nice-to-have
- - qa
- - reporter
- - semver-major
- - semver-minor
- - semver-patch
- - unconfirmed-bug
- - usability
-# Label to use when marking an issue as stale
-staleLabel: stale
-# Comment to post when marking an issue as stale. Set to `false` to disable
-markComment: >
- I am a bot that watches issues for inactivity.
-
- This issue hasn't had any recent activity, and I'm labeling it `stale`. In 14 days, if there are no further comments or activity, I will close this issue.
-
- Thanks for contributing to Mocha!
-# Comment to post when closing a stale issue. Set to `false` to disable
-closeComment: false
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
new file mode 100644
index 00000000..0083bbfb
--- /dev/null
+++ b/.github/workflows/stale.yml
@@ -0,0 +1,24 @@
+name: 'Stale/close issues and PRs'
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '30 0 * * 1,3,5'
+
+jobs:
+ stale:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/stale@v3
+ with:
+ days-before-stale: 120
+ days-before-close: 14
+ stale-issue-message: >
+ This issue hasn't had any recent activity, and I'm labeling it `stale`.
+ Remove the label or comment or this issue will be closed in 14 days.
+ Thanks for contributing to Mocha!
+ stale-pr-message: >
+ This PR hasn't had any recent activity, and I'm labeling it `stale`.
+ Remove the label or comment or this PR will be closed in 14 days.
+ Thanks for contributing to Mocha!'
+ exempt-issue-labels: browser,chore,confirmed-bug,developer-experience,documentation,faq,feature,future,good-first-issue,help wanted,nice-to-have,qa,reporter,unconfirmed-bug,usability
+ exempt-pr-labels: browser,chore,confirmed-bug,developer-experience,documentation,faq,feature,future,needs-review,nice-to-have,qa,reporter,semver-major,semver-minor,semver-patch,usability