Skip to content

Commit

Permalink
ci: enable stale GH action in place of stalebot
Browse files Browse the repository at this point in the history
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 Dec 31, 2021
1 parent 33f06be commit 39999fb
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/[email protected]
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 39999fb

Please sign in to comment.