Mark stale issues #1387
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 workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. | |
# | |
# You can adjust the behavior by modifying this file. | |
# For more information, see: | |
# https://github.com/marketplace/actions/close-stale-issues | |
name: Mark stale issues | |
on: # yamllint disable-line rule:truthy | |
schedule: | |
- cron: "0 */12 * * *" | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
# The 14 day stale policy for issues | |
# Used for: | |
# - Issues that are under test. | |
# - No Issues marked as no-stale. | |
# - No Pull Requests. | |
- name: Under test stale issues policy | |
uses: actions/stale@v7.0.0 | |
with: | |
repo-token: ${{ github.token }} | |
only-labels: "testing" | |
days-before-stale: 14 | |
days-before-close: 2 | |
days-before-pr-stale: -1 | |
days-before-pr-close: -1 | |
operations-per-run: 250 | |
remove-stale-when-updated: true | |
stale-issue-label: "stale" | |
exempt-issue-labels: "no-stale" | |
stale-issue-message: > | |
There hasn't been any activity on this issue recently that is under test. | |
Update the issue in the next 2 days or it will be closed assuming it was tested successfully. | |
close-issue-reason: "completed" |