From f3c92a28219b13457fd4eb0a10e948942a651bed Mon Sep 17 00:00:00 2001 From: Vlad Mocanu Date: Thu, 26 Feb 2026 10:21:18 +0200 Subject: [PATCH] fix: move comments out of workflow if: expression block Forgejo runner's expression parser rejects '#' characters inside if: | blocks (run 52778: "unexpected character '#' while lexing expression"). Move all comments above the if: key and switch from block scalar (|) to folded scalar (>-) to avoid multiline issues. Co-Authored-By: Claude Opus 4.6 --- .forgejo/workflows/claude.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.forgejo/workflows/claude.yml b/.forgejo/workflows/claude.yml index 4429059..7dadd18 100644 --- a/.forgejo/workflows/claude.yml +++ b/.forgejo/workflows/claude.yml @@ -26,13 +26,7 @@ jobs: # despite action being 'labeled'). Let all through; trigger.ts validates. if: >- (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || - # Forgejo collapses both pull_request_review_comment AND pull_request_review - # into pull_request_comment. We cannot gate on @claude here because Forgejo's - # webhook payload does not populate github.event.comment.body or - # github.event.review.body for these events (tested: run 12084 was skipped). - # The @claude check is handled in trigger.ts which reads the actual payload. (github.event_name == 'pull_request_review_comment' || github.event_name == 'pull_request_comment') || - # This condition only fires on GitHub (Forgejo never sends pull_request_review). (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || (github.event_name == 'issues') runs-on: grunt