Stale Issues / PRs #394
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
--- | |
# This action is centrally managed in https://github.com/<organization>/.github/ | |
# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in | |
# the above-mentioned repo. | |
# Manage stale issues and PRs. | |
name: Stale Issues / PRs | |
on: | |
schedule: | |
- cron: '00 10 * * *' | |
jobs: | |
stale: | |
name: Check Stale Issues / PRs | |
if: startsWith(github.repository, 'LizardByte/') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Stale | |
uses: actions/stale@v8 | |
with: | |
close-issue-message: > | |
This issue was closed because it has been stalled for 10 days with no activity. | |
close-pr-message: > | |
This PR was closed because it has been stalled for 10 days with no activity. | |
days-before-stale: 90 | |
days-before-close: 10 | |
exempt-all-assignees: true | |
exempt-issue-labels: 'added,fixed' | |
exempt-pr-labels: 'dependencies,l10n' | |
stale-issue-label: 'stale' | |
stale-issue-message: > | |
This issue is stale because it has been open for 90 days with no activity. | |
Comment or remove the stale label, otherwise this will be closed in 10 days. | |
stale-pr-label: 'stale' | |
stale-pr-message: > | |
This PR is stale because it has been open for 90 days with no activity. | |
Comment or remove the stale label, otherwise this will be closed in 10 days. | |
repo-token: ${{ secrets.GH_BOT_TOKEN }} | |
- name: Invalid Template | |
uses: actions/stale@v8 | |
with: | |
close-issue-message: > | |
This issue was closed because the the template was not completed after 5 days. | |
close-pr-message: > | |
This PR was closed because the the template was not completed after 5 days. | |
days-before-stale: 0 | |
days-before-close: 5 | |
exempt-pr-labels: 'dependencies,l10n' | |
only-labels: 'invalid:template-incomplete' | |
stale-issue-label: 'invalid:template-incomplete' | |
stale-issue-message: > | |
Invalid issues template. | |
stale-pr-label: 'invalid:template-incomplete' | |
stale-pr-message: > | |
Invalid PR template. | |
repo-token: ${{ secrets.GH_BOT_TOKEN }} |