From 0d659458521528d2640d7407da76e32fee792a40 Mon Sep 17 00:00:00 2001 From: Gerry Ferdinandus Date: Fri, 17 Sep 2021 18:51:30 +0200 Subject: [PATCH] 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. --- .github/workflows/stale.yml | 18 ++++++++++++++++++ CONTRIBUTING.md | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..4843b3a4 --- /dev/null +++ b/.github/workflows/stale.yml @@ -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 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a04fec40..d92703b8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -34,7 +34,7 @@ After adding schema files, register them in [schema catalog](src/api/json/catalo ``` -### Adding tests +### Adding tests (for [local schemas](src/schemas/json) only) To make sure that files are validated against your schema correctly (we strongly suggest adding at least one before creating a pull request):