mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-01-16 13:13:11 +01:00
ff8373c616
Apparently checking issues or PRs which have been labelled with "stale" consumes more operations than checking ones without labelled, and the current amount (100) is not enough. See an example: https://github.com/spantaleev/matrix-docker-ansible-deploy/actions/runs/12566424393/job/35031806537#step:2:4083 Since the total amount of GitHub API rate is 5000, reserving 10 per cent for this action should not be an issue for now. Let's increase again if it is still too low. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
51 lines
2.8 KiB
YAML
51 lines
2.8 KiB
YAML
---
|
|
name: 'Close stale issues and PRs'
|
|
on: # yamllint disable-line rule:truthy
|
|
# Use this to do a dry run from a pull request
|
|
# pull_request:
|
|
schedule:
|
|
- cron: '30 1 * * *'
|
|
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
stale:
|
|
if: github.repository == 'spantaleev/matrix-docker-ansible-deploy'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/stale@v9
|
|
with:
|
|
######################################################################
|
|
# Issues/PRs
|
|
######################################################################
|
|
exempt-assignees: 'spantaleev,aine-etke'
|
|
operations-per-run: 500
|
|
# Use this to do a dry run from a pull request
|
|
# debug-only: true
|
|
######################################################################
|
|
# Issues
|
|
######################################################################
|
|
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. To exempt the issue from being marked as stale again due to inactivity, add "confirmed" label.'
|
|
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity. If this issue is still reproduced, feel free to provide the issue with up-to-date information.'
|
|
stale-issue-label: 'stale'
|
|
# Add this label to exempt the issue from being marked as stale due to inactivity
|
|
exempt-issue-labels: 'confirmed'
|
|
# An allow-list of label(s) to only process the issues which contain one of these label(s).
|
|
any-of-issue-labels: 'needs-info,question'
|
|
######################################################################
|
|
# PRs
|
|
######################################################################
|
|
days-before-pr-stale: '365'
|
|
days-before-pr-close: '30'
|
|
stale-pr-message: 'This PR is stale because it has not been provided with required information or its conflicts have not been fixed over a year. Remove stale label or this will be closed in 30 days. To exempt the PR from being marked as stale again due to inactivity, add "confirmed" label.'
|
|
close-pr-message: 'This PR was closed because it has been stalled for 30 days with no activity.'
|
|
stale-pr-label: 'stale'
|
|
# Add this label to exempt the PR from being marked as stale due to inactivity
|
|
exempt-pr-labels: 'confirmed'
|
|
# An allow-list of label(s) to only process the PRs which contain one of these label(s).
|
|
any-of-pr-labels: 'needs-info,needs-rebase'
|
|
# Use this to ignore updates such as comments (only to keep the PR alive by bumping)
|
|
ignore-pr-updates: true
|