X Tutup
Skip to content

Commit 2819deb

Browse files
committed
Avoid applying human-oriented PR automation to PRs from bots
1 parent dabaa5a commit 2819deb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/prauto.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
PRNUM: ${{ github.event.pull_request.number }}
1616
PRHEAD: ${{ github.event.pull_request.head.label }}
1717
PRAUTHOR: ${{ github.event.pull_request.user.login }}
18+
PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }}
1819
if: "!github.event.pull_request.draft"
1920
run: |
2021
commentPR () {
@@ -42,7 +43,7 @@ jobs:
4243
' -f colID="$(colID "Needs review")" -f prID="$PRID"
4344
}
4445
45-
if gh api orgs/cli/public_members/$PRAUTHOR --silent 2>/dev/null
46+
if [ "$PR_AUTHOR_TYPE" = "Bot" ] || gh api orgs/cli/public_members/$PRAUTHOR --silent 2>/dev/null
4647
then
4748
if ! errtext="$(addToBoard 2>&1)"
4849
then

0 commit comments

Comments
 (0)
X Tutup