chore(ci): add github action for PR's
This commit is contained in:
parent
af11af357e
commit
84b5022f7d
1 changed files with 21 additions and 0 deletions
21
.github/workflows/no-pr.yml
vendored
Normal file
21
.github/workflows/no-pr.yml
vendored
Normal file
|
@ -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-HW - please submit your pull request there if you would like it to be considered for merging.
|
Loading…
Reference in a new issue