Close Stale PRs #414
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 CODE WAS AUTOGENERATED. DO NOT MODIFY THIS FILE DIRECTLY | |
# THE SOURCE CODE LIVES IN A DIFFERENT REPOSITORY: | |
# - centralized-templates | |
# FILE STEWARD: @pleo-io/team-devx,@pleo-bot-auto-approver | |
# Warn and later close PRs that have had no activity for a specified amount of time. | |
# This reminds us that code in most cases only provide value once merged. | |
name: "Close Stale PRs" | |
on: | |
schedule: | |
- cron: "0 9,16 * * *" | |
jobs: | |
stale: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | |
with: | |
stale-pr-label: stale | |
exempt-pr-labels: never-stale,dependencies | |
stale-pr-message: | | |
This PR is marked as stale since it has been open for 30 days with no activity. | |
Remove the stale label or make a comment, otherwise the PR will be closed in 7 days. | |
close-pr-message: "This PR was closed because it has been stale for 7 days with no activity." | |
days-before-issue-stale: -1 | |
days-before-pr-stale: 30 | |
days-before-issue-close: -1 | |
days-before-pr-close: 7 | |
start-date: "2023-01-12" |