From c89938d23af330e9fff0cde860fc5b06d31c2087 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Tue, 16 Apr 2024 00:01:55 +0200 Subject: [PATCH] chore(ci): add github action for PR's --- .github/workflows/no-pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/no-pr.yml diff --git a/.github/workflows/no-pr.yml b/.github/workflows/no-pr.yml new file mode 100644 index 0000000..abd098a --- /dev/null +++ b/.github/workflows/no-pr.yml @@ -0,0 +1,21 @@ +name: Close pull request + +on: + pull_request_target: + types: + - opened + +jobs: + close-pr: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - run: gh pr close "$NUMBER" --comment "$COMMENT" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.number }} + COMMENT: > + Thank you for submitting your pull request. + Please note that the main repository is located at https://git.naxdy.org/NaxdyOrg/NaxGCC-FW - please submit your pull request there if you would like it to be considered for merging.