mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Add action to close stale PR
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
parent
8d2e023ec0
commit
4413224a31
33
.github/workflows/stale_pr.yml
vendored
Normal file
33
.github/workflows/stale_pr.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Close stale PR
|
||||||
|
# This action will add a `stale` label and close immediately every PR that meets the following conditions:
|
||||||
|
# - it is already marked with "merge conflict" label
|
||||||
|
# - the "merge conflict" label was added more than 30 days before.
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 10 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v7.0.0
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# Do not mark a PR as stale
|
||||||
|
days-before-stale: -1
|
||||||
|
days-before-pr-stale: 30
|
||||||
|
days-before-pr-close: 0
|
||||||
|
# only run the action on merge conflict PR
|
||||||
|
any-of-labels: 'PR: Merge Conflict'
|
||||||
|
exempt-pr-labels: 'internal, never-stale, ON HOLD, WIP'
|
||||||
|
exempt-all-pr-assignees: true
|
||||||
|
operations-per-run: 300
|
||||||
|
stale-pr-message: ''
|
||||||
|
close-pr-message: 'Existing merge conflicts have not been addressed. This PR is considered abandoned.'
|
Loading…
Reference in New Issue
Block a user