From d6c04a3787eed78f0eaab5858fcb5ba6071cdcf3 Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 14 Sep 2023 11:01:07 -0700 Subject: [PATCH] ci: ignore actions taken by triage bot (#39855) * ci: ignore actions taken by triage bot * ci: don't remove blocked label on bot comment --- .github/workflows/issue-commented.yml | 2 +- .github/workflows/issue-labeled.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue-commented.yml b/.github/workflows/issue-commented.yml index 3c45028d3aa1..c10b8e46b312 100644 --- a/.github/workflows/issue-commented.yml +++ b/.github/workflows/issue-commented.yml @@ -10,7 +10,7 @@ permissions: {} jobs: issue-commented: name: Remove blocked/need-repro on comment - if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} + if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && github.event.comment.user.type != "Bot" }} runs-on: ubuntu-latest steps: - name: Generate GitHub App token diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml index d4bd3332f1f7..52289d0fc565 100644 --- a/.github/workflows/issue-labeled.yml +++ b/.github/workflows/issue-labeled.yml @@ -42,7 +42,7 @@ jobs: GH_REPO: electron/electron run: | set -eo pipefail - COMMENT_COUNT=$(gh issue view ${{ github.event.issue.number }} --comments --json comments | jq '[ .comments[] | select(.author.login == "github-actions" or .authorAssociation == "OWNER" or .authorAssociation == "MEMBER") | select(.body | startswith("")) ] | length') + COMMENT_COUNT=$(gh issue view ${{ github.event.issue.number }} --comments --json comments | jq '[ .comments[] | select(.author.login == "electron-issue-triage" or .authorAssociation == "OWNER" or .authorAssociation == "MEMBER") | select(.body | startswith("")) ] | length') if [[ $COMMENT_COUNT -eq 0 ]]; then echo "SHOULD_COMMENT=1" >> "$GITHUB_OUTPUT" fi