mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-28 11:58:31 +01:00
Merge pull request #3813 from luixxiul/fix
Update .github/workflows/close-stale-issues.yml: include PRs
This commit is contained in:
commit
5483925ee4
37
.github/workflows/close-stale-issues.yml
vendored
37
.github/workflows/close-stale-issues.yml
vendored
@ -1,11 +1,14 @@
|
|||||||
---
|
---
|
||||||
name: 'Close stale issues'
|
name: 'Close stale issues and PRs'
|
||||||
on: # yamllint disable-line rule:truthy
|
on: # yamllint disable-line rule:truthy
|
||||||
|
# Use this to do a dry run from a pull request
|
||||||
|
# pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 1 * * *'
|
- cron: '30 1 * * *'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
@ -14,14 +17,36 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v9
|
- uses: actions/stale@v9
|
||||||
with:
|
with:
|
||||||
# Don't process pull requests at all
|
######################################################################
|
||||||
days-before-pr-stale: -1
|
# Issues/PRs
|
||||||
|
######################################################################
|
||||||
|
exempt-assignees: 'spantaleev,aine-etke'
|
||||||
|
operations-per-run: 100
|
||||||
|
# An allow-list of label(s) to only process the issues/PRs which contain one of these label(s).
|
||||||
|
any-of-labels: 'needs-info'
|
||||||
|
# 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.'
|
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.'
|
||||||
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.'
|
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'
|
stale-issue-label: 'stale'
|
||||||
# Add this label to exempt the issue from being marked as stale due to inactivity
|
# Add this label to exempt the issue from being marked as stale due to inactivity
|
||||||
exempt-issue-labels: 'confirmed'
|
exempt-issue-labels: 'confirmed'
|
||||||
# An allow-list of label(s) to only process the issues which contain one of these label(s).
|
# An allow-list of label(s) to only process the issues which contain one of these label(s).
|
||||||
any-of-issue-labels: 'question,needs-info'
|
any-of-issue-labels: 'question'
|
||||||
# Use this to do a dry run from a pull request
|
######################################################################
|
||||||
# debug-only: true
|
# PRs
|
||||||
|
######################################################################
|
||||||
|
days-before-pr-stale: '365'
|
||||||
|
days-before-pr-close: '30'
|
||||||
|
stale-pr-message: 'This PR is stale because it has been open a year with no activity. Remove stale label or this will be closed in 30 days.'
|
||||||
|
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-rebase'
|
||||||
|
# Use this to ignore updates such as comments (only to keep the PR alive by bumping)
|
||||||
|
ignore-pr-updates: true
|
||||||
|
Loading…
Reference in New Issue
Block a user