From d1b7999f772b5b1cf48d418ac0180f817383f77f Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Thu, 29 Aug 2024 16:17:39 +0200 Subject: [PATCH] chore(github): Add action to close all pull requests --- .../{auto-close.yml => close-issues.yml} | 3 +++ .github/workflows/close-pull-requests.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) rename .github/workflows/{auto-close.yml => close-issues.yml} (92%) create mode 100644 .github/workflows/close-pull-requests.yml diff --git a/.github/workflows/auto-close.yml b/.github/workflows/close-issues.yml similarity index 92% rename from .github/workflows/auto-close.yml rename to .github/workflows/close-issues.yml index 52750fe75..e57bfcf06 100644 --- a/.github/workflows/auto-close.yml +++ b/.github/workflows/close-issues.yml @@ -1,6 +1,9 @@ +name: Close all issues + on: issues: types: [opened] + jobs: closeAll: runs-on: ubuntu-latest diff --git a/.github/workflows/close-pull-requests.yml b/.github/workflows/close-pull-requests.yml new file mode 100644 index 000000000..5d0e541fa --- /dev/null +++ b/.github/workflows/close-pull-requests.yml @@ -0,0 +1,16 @@ +name: Close all pull requests + +on: + pull_request_target: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3 + with: + comment: | + Please open issues and pull requests on drupal.org: https://www.drupal.org/project/issues/graphql + Auto-closing this pull request. +