add: GitHub action to automatically close stale PR (#1831)

* add: github action to close stale PR

* doc: Adding tests (for local schemas only)

Make it clear that the test is only for local schemas.
This commit is contained in:
Gerry Ferdinandus
2021-09-17 18:51:30 +02:00
committed by GitHub
parent aacfab728a
commit 0d65945852
2 changed files with 19 additions and 1 deletions

18
.github/workflows/stale.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: "Close stale PRs"
on:
schedule:
- cron: "30 1 * * *"
permissions:
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v4
with:
stale-pr-message: "This PR is stale because it has been open 60 days with no activity. Comment or this will be closed in 7 days."
close-pr-message: "This PR was closed because it has been stalled for 7 days with no activity."
days-before-issue-stale: -1
days-before-issue-close: -1