gorm/.github/workflows/stale.yml

29 lines
972 B
YAML
Raw Normal View History

2020-07-09 17:02:29 +03:00
name: "Stale"
2020-07-01 14:50:24 +03:00
on:
schedule:
2020-07-09 17:14:11 +03:00
- cron: "0 2 * * *"
2020-07-01 14:50:24 +03:00
permissions:
contents: read
2020-07-01 14:50:24 +03:00
jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
2020-07-01 14:50:24 +03:00
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Close Stale Issues
uses: actions/stale@v8
2020-07-01 14:50:24 +03:00
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
2022-02-19 12:08:11 +03:00
stale-issue-message: "This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days"
days-before-stale: 360
days-before-close: 180
2020-07-09 17:14:11 +03:00
stale-issue-label: "status:stale"
exempt-issue-labels: 'type:feature,type:with reproduction steps,type:has pull request'
stale-pr-label: 'status:stale'
exempt-pr-labels: 'type:feature,type:with reproduction steps,type:has pull request'