Go to file
Chris Patterson fa4fd2aed4
Update close_stale.yml
2019-08-03 21:41:11 -04:00
.github/workflows Update close_stale.yml 2019-08-03 21:41:11 -04:00
__tests__ Initial import 2019-08-03 21:34:59 -04:00
docs Initial import 2019-08-03 21:34:59 -04:00
lib Initial import 2019-08-03 21:34:59 -04:00
node_modules Initial import 2019-08-03 21:34:59 -04:00
src Initial import 2019-08-03 21:34:59 -04:00
toolkit Initial import 2019-08-03 21:34:59 -04:00
.gitignore Initial import 2019-08-03 21:34:59 -04:00
.prettierrc.json Initial import 2019-08-03 21:34:59 -04:00
LICENSE Initial import 2019-08-03 21:34:59 -04:00
README.md Initial import 2019-08-03 21:34:59 -04:00
action.yml Initial import 2019-08-03 21:34:59 -04:00
jest.config.js Initial import 2019-08-03 21:34:59 -04:00
package-lock.json Initial import 2019-08-03 21:34:59 -04:00
package.json Initial import 2019-08-03 21:34:59 -04:00
tsconfig.json Initial import 2019-08-03 21:34:59 -04:00

README.md

Close Stale Issues

To use, spin up a workflow. The following inputs are available:

  • stale_age_days: The number of days old an issue can be before marking it stale (default 60)
  • wait_after_stale_days: The number of days to wait to close an issue after it being marked stale (default 7)
  • max_operations_per_run:The maximum number of operations per run, used to control rate limiting (default 30)
  • stale_label: The label to apply when an item is stale (default 'Stale')
  • stale_message: The message to post on the issue when tagging it

You'll need to map GITHUB_TOKEN to a PAT token for the identity you want to use to modify the issues:

Example workflow:

name: "Close stale issues"
on:
  push: {}
  schedule:
  - cron: 0 * * * *

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: bbq-beets/stale-bot@master
      with:
        stale_age_days: 60
        wait_after_stale_days: 7
      env:
        GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"