Mark stale issues and pull requests #871
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mark stale issues and pull requests | |
on: | |
schedule: | |
- cron: "30 1 * * *" | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
if: github.repository == 'detekt/detekt' | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9 | |
with: | |
repo-token: ${{ secrets.DETEKT_CI_GITHUB_USER_TOKEN }} | |
days-before-stale: 90 | |
stale-issue-message: "This issue is stale because it has been open 90 days with no activity. Please comment or this will be closed in 7 days." | |
stale-pr-message: "This PR is stale because it has been open 90 days with no activity. Please comment or this will be closed in 7 days." | |
close-issue-message: "This issue was closed because it has been stalled for 7 days with no activity." | |
close-pr-message: "This PR was closed because it has been stalled for 7 days with no activity." | |
stale-issue-label: stale | |
stale-pr-label: stale | |
exempt-issue-labels: help wanted, good first issue, never gets stale, blocked | |
exempt-pr-labels: help wanted, good first issue, never gets stale, blocked | |
exempt-milestones: 2.0.0 | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9 | |
with: | |
repo-token: ${{ secrets.DETEKT_CI_GITHUB_USER_TOKEN }} | |
days-before-stale: 30 | |
stale-issue-message: "This issue is waiting for authors feedback since 30 days. Please comment providing the requested feedback or this issue will be closed in 7 days." | |
stale-pr-message: "This PR is waiting for authors feedback since 30 days. Please comment providing the requested feedback or this PR will be closed in 7 days." | |
close-issue-message: "This issue was closed because its author has not followed up after 7 days." | |
close-pr-message: "This PR was closed because its author has not followed up after 7 days." | |
stale-issue-label: stale | |
stale-pr-label: stale | |
any-of-labels: waiting for feedback, support | |
exempt-issue-labels: never gets stale | |
exempt-pr-labels: never gets stale |