mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-09 07:48:56 +00:00

the stale label is already removed automatically by the action. `labels-to-remove-when-unstale` is used to remove additional labels. https://github.com/actions/stale?tab=readme-ov-file#labels-to-remove-when-unstale https://github.com/conan-io/conan-center-index/actions/runs/8044709241/job/21968729920#step:2:25205 https://github.com/conan-io/conan-center-index/actions/runs/8044709241/job/21968729920#step:2:25208
64 lines
1.7 KiB
YAML
64 lines
1.7 KiB
YAML
# 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/actions/stale
|
|
name: Mark stale pull requests
|
|
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '34 6 * * *'
|
|
|
|
jobs:
|
|
stale:
|
|
if: github.repository == 'conan-io/conan-center-index'
|
|
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
issues: read
|
|
|
|
|
|
steps:
|
|
- uses: actions/stale@v9
|
|
with:
|
|
# Do not make issues as stale
|
|
days-before-issue-stale: -1
|
|
# Number of days before stale PRs are closed
|
|
days-before-pr-stale: 30
|
|
|
|
|
|
# Do not close issues automatically
|
|
days-before-issue-close: -1
|
|
# Idle number of days before closing stale PRs
|
|
days-before-pr-close: 30
|
|
|
|
# process older PRs first
|
|
ascending: true
|
|
|
|
# Labels on PRs exempted from stale
|
|
exempt-pr-labels: blocked,infrastructure
|
|
|
|
# Label to apply on staled PRs
|
|
stale-pr-label: 'stale'
|
|
|
|
# Skip issues when having stale state
|
|
remove-issue-stale-when-updated: false
|
|
ignore-issue-updates: true
|
|
|
|
|
|
# Comment on the staled PRs
|
|
stale-pr-message: >
|
|
This pull request has been automatically marked as stale because it has not had
|
|
recent activity. It will be closed if no further activity occurs. Thank you
|
|
for your contributions.
|
|
|
|
# Comment on the staled PRs while closed
|
|
close-pr-message: >
|
|
This pull request has been automatically closed because it has not had
|
|
recent activity. Thank you for your contributions.
|
|
|
|
# Max number of operations per run
|
|
operations-per-run: 30
|