📚 Freely available programming books
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.8 KiB

name: 'Stale handler'
on:
schedule:
- cron: '0 0 * * *' # Run every day at midnight
workflow_dispatch:
inputs:
debug-only:
type: boolean
description: "Does a dry-run when enabled. No PR's will be altered"
required: true
default: true
permissions:
pull-requests: write
actions: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: -1 # Don't mark issues as stale
days-before-issue-close: -1 # Don't close issues
stale-pr-message: |
'This Pull Request has been automatically marked as stale because it has not had recent activity during last 60 days :sleeping:
It will be closed in 30 days if no further activity occurs. To unstale this PR, draft it, remove stale label, comment with a detailed explanation or push more commits.
There can be many reasons why some specific PR has no activity. The most probable cause is lack of time, not lack of interest.
Thank you for your patience :heart:'
close-pr-message: |
This Pull Request has been automatically closed because it has been inactive during the last 30 days since being marked as stale.
As author or maintainer, it can always be reopened if you see that carry on been useful.
Anyway, thank you for your interest in contribute :heart:
days-before-pr-stale: 60
days-before-pr-close: 30
stale-pr-label: 'stale'
exempt-pr-labels: 'keep' # Don't mark PR's with this label as stale
labels-to-remove-when-unstale: 'stale'
exempt-draft-pr: true
debug-only: ${{ github.event.inputs.debug-only == 'true' }}
enable-statistics: true