Stale maintenance #1012
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
# | |
# Stale item management | |
# | |
# NOTES: | |
# This workflow manages stale work items on the repository. | |
name: Stale maintenance | |
on: | |
schedule: | |
- cron: '30 1 * * *' | |
workflow_dispatch: | |
permissions: {} | |
jobs: | |
issue: | |
name: Close stale issues | |
runs-on: ubuntu-latest | |
if: github.repository == 'microsoft/PSRule.Rules.GitHub' | |
permissions: | |
issues: write | |
steps: | |
- uses: actions/stale@v9 | |
with: | |
stale-issue-message: > | |
This issue has been automatically marked as stale because it has not had | |
recent activity. It will be closed if no further activity occurs within 7 days. | |
Thank you for your contributions. | |
close-issue-message: 'This issue was closed because it has not had any recent activity.' | |
days-before-stale: 14 | |
days-before-pr-stale: -1 | |
days-before-close: 7 | |
days-before-pr-close: -1 | |
any-of-labels: 'question,duplicate,incomplete,waiting-feedback' | |
stale-issue-label: stale |