From ad91403ed6ac5e622b0397e0a5f77659e3a3572e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ry=C5=A1av=C3=BD?= Date: Sun, 12 Oct 2025 07:47:36 +0200 Subject: [PATCH] Ensure comment guard triggers on labeled event --- .github/workflows/pr-comments-guard.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-comments-guard.yml b/.github/workflows/pr-comments-guard.yml index 1001da73e..5761b7169 100644 --- a/.github/workflows/pr-comments-guard.yml +++ b/.github/workflows/pr-comments-guard.yml @@ -10,7 +10,9 @@ permissions: jobs: comment-only: name: Ensure Only Comments Change (${{ matrix.mode }}) # Include active mode in job name for clearer logs. - if: contains(github.event.pull_request.labels.*.name, 'comments translation') + if: >- + contains(github.event.pull_request.labels.*.name, 'comments translation') + || (github.event.action == 'labeled' && github.event.label.name == 'comments translation') strategy: # Expand the job to cover both evaluation modes. fail-fast: false # Make sure the relaxed run completes even if the strict mode fails first. matrix: