2024-08-09 10:20:30 -07:00
|
|
|
name: Stale Check
|
|
|
|
on:
|
|
|
|
workflow_dispatch: {}
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
|
|
stale:
|
|
|
|
# only run on repos in prometheus org, and skip this workflow in forks.
|
|
|
|
if: github.repository_owner == 'prometheus'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-08-09 10:36:11 -07:00
|
|
|
# pin to SHA of v9.0.0: https://github.com/actions/stale/releases/tag/v9.0.0
|
|
|
|
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
|
2024-08-09 10:20:30 -07:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# opt out of defaults to avoid marking issues as stale and closing them
|
|
|
|
# https://github.com/actions/stale#days-before-close
|
|
|
|
# https://github.com/actions/stale#days-before-stale
|
|
|
|
days-before-stale: -1
|
|
|
|
days-before-close: -1
|
|
|
|
# Setting it to empty string to skip comments.
|
|
|
|
# https://github.com/actions/stale#stale-pr-message
|
|
|
|
# https://github.com/actions/stale#stale-issue-message
|
|
|
|
stale-pr-message: ''
|
|
|
|
stale-issue-message: ''
|
|
|
|
operations-per-run: 30
|
|
|
|
# override days-before-stale, for only marking the pull requests as stale
|
|
|
|
days-before-pr-stale: 60
|
|
|
|
stale-pr-label: stale
|
|
|
|
exempt-pr-labels: keepalive
|