mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-01-18 07:17:03 +00:00
Update checker.yml
This commit is contained in:
parent
e9e90e6133
commit
821ae33553
20
.github/workflows/checker.yml
vendored
20
.github/workflows/checker.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Check if a PR has a valid Issue
|
||||
name: PR has a valid Issue?
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
|
@ -17,3 +17,21 @@ jobs:
|
|||
with:
|
||||
prbody: ${{ github.event.pull_request.body }}
|
||||
prurl: ${{ github.event.pull_request.url }}
|
||||
|
||||
- name: PR has a valid Issue
|
||||
if: ${{ steps.validator.outputs.valid == 1 }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PRNUM: ${{ github.event.pull_request.number }}
|
||||
run: |
|
||||
gh pr edit $PRNUM --add-label "PR:Ready-to-Review"
|
||||
gh pr edit $PRNUM --remove-label "PR:No-Issue"
|
||||
|
||||
- name: PR has no valid Issue
|
||||
if: ${{ steps.validator.outputs.valid == 0 }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PRNUM: ${{ github.event.pull_request.number }}
|
||||
run: |
|
||||
gh pr comment $PRNUM --body "PR is not linked to any issue, please make the corresponding changes in the body."
|
||||
gh pr edit $PRNUM --add-label "PR:No-Issue"
|
||||
|
|
Loading…
Reference in New Issue
Block a user