Avoid applying human-oriented PR automation to PRs from bots
This commit is contained in:
parent
dabaa5ad7d
commit
2819deb15b
1 changed files with 2 additions and 1 deletions
3
.github/workflows/prauto.yml
vendored
3
.github/workflows/prauto.yml
vendored
|
|
@ -15,6 +15,7 @@ jobs:
|
|||
PRNUM: ${{ github.event.pull_request.number }}
|
||||
PRHEAD: ${{ github.event.pull_request.head.label }}
|
||||
PRAUTHOR: ${{ github.event.pull_request.user.login }}
|
||||
PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }}
|
||||
if: "!github.event.pull_request.draft"
|
||||
run: |
|
||||
commentPR () {
|
||||
|
|
@ -42,7 +43,7 @@ jobs:
|
|||
' -f colID="$(colID "Needs review")" -f prID="$PRID"
|
||||
}
|
||||
|
||||
if gh api orgs/cli/public_members/$PRAUTHOR --silent 2>/dev/null
|
||||
if [ "$PR_AUTHOR_TYPE" = "Bot" ] || gh api orgs/cli/public_members/$PRAUTHOR --silent 2>/dev/null
|
||||
then
|
||||
if ! errtext="$(addToBoard 2>&1)"
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue