From 09b27eea44d761deea2ec221e77be57ac4092c81 Mon Sep 17 00:00:00 2001 From: jth-nw Date: Mon, 9 Mar 2026 18:04:43 -0500 Subject: [PATCH] fix: expression parse error in doc-pr workflow The square brackets in 'github-actions[bot]' were interpreted as an index accessor in the GitHub Actions expression parser, causing "An expression was expected" at line 141. Replace with startsWith() to avoid the bracket issue. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/claude-doc-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/claude-doc-pr.yml b/.github/workflows/claude-doc-pr.yml index b08779e2a5..012d41b349 100644 --- a/.github/workflows/claude-doc-pr.yml +++ b/.github/workflows/claude-doc-pr.yml @@ -122,11 +122,11 @@ jobs: # Job 2: @claude follow-up on PR comments # ────────────────────────────────────────────── doc-followup: - if: | + if: >- github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@claude') && - github.event.comment.user.login != 'github-actions[bot]' + !startsWith(github.event.comment.user.login, 'github-actions') runs-on: ubuntu-latest permissions: contents: write