From 6095090a66775f00aad587e46316aee6fc5b2607 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 28 Aug 2026 17:05:37 +0200 Subject: [PATCH] more explicit print --- .github/workflows/pr_edit_trigger.yaml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pr_edit_trigger.yaml b/.github/workflows/pr_edit_trigger.yaml index 5d73d1c46..57c8449eb 100644 --- a/.github/workflows/pr_edit_trigger.yaml +++ b/.github/workflows/pr_edit_trigger.yaml @@ -39,6 +39,9 @@ jobs: if (action === 'labeled' || action === 'unlabeled') { const changedLabel = context.payload.label?.name; + core.info( + `Changed Label: ${changedLabel}` + ); const relevantLabels = [ 'Feature', @@ -46,26 +49,17 @@ jobs: 'Infrastructure', 'Breaking API' ]; + if (!relevantLabels.includes(changedLabel)) { + requireValidation = false; + } const fileLabels = [ 'File Major', 'File Minor', ]; - - if (!relevantLabels.includes(changedLabel)) { - core.info( - `Ignoring unrelated label change: ${changedLabel}` - ); - requireValidation = false; - } - if (fileLabels.includes(changedLabel)) { - core.info( - `File version label change detected: ${changedLabel}` - ); fileLabelChange = true; } - } /* @@ -75,22 +69,19 @@ jobs: 'require_validation', requireValidation.toString() ); - core.setOutput( 'file_label_change', fileLabelChange.toString() ); - /* * Log what will run. */ if (requireValidation) { core.info('PR type validation required.'); } else { - core.info('PR type validation not required.'); + core.info('PR type validation not required: Unrelated label.'); } - if (fileLabelChange) { core.info('File version label change detected.'); } else {