Skip to content

Commit

Permalink
Merge pull request #6599 from emqx/stale-action
Browse files Browse the repository at this point in the history
ci: enable stale GH action in place of stalebot

Since stalebot appears to have been unreliable
recently (probot/stale#349), we can try to
use GH Actions to manage the stale issues.
  • Loading branch information
thalesmg committed Jan 3, 2022
2 parents 852033a + 39999fb commit 95566c6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 63 deletions.
63 changes: 0 additions & 63 deletions .github/stale.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---

name: Manage stale issues

on:
schedule:
# run hourly
- cron: "0 * * * *"
workflow_dispatch:

jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: none

steps:
- name: Close Stale Issues
uses: actions/stale@v4.1.0
with:
days-before-stale: 7
days-before-close: 7
exempt-issue-labels: 'internal,BUG,help wanted,#triage/accepted,#needs-triage,Feature'
stale-issue-label: "#triage/stale"
stale-issue-message: >-
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
...

0 comments on commit 95566c6

Please sign in to comment.