From b80f9883f94b86226c25529e38e23cef2dc79658 Mon Sep 17 00:00:00 2001 From: ada mancini Date: Thu, 2 May 2024 09:04:06 -0400 Subject: [PATCH] list possible primary labels list the expected primary label - I was getting confused making a docs PR because type::documentation is not in the PRIMARY_LABELS list. --- .github/actions/pr-labels/src/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/pr-labels/src/index.js b/.github/actions/pr-labels/src/index.js index 7a3077c..bafff7b 100644 --- a/.github/actions/pr-labels/src/index.js +++ b/.github/actions/pr-labels/src/index.js @@ -37,9 +37,7 @@ async function run() { core.debug(`Found primary labels: ${primaryLabels.join(", ")}`); if (primaryLabels.length !== 1) { throw new Error( - `Exactly one primary label must be set. Found: ${primaryLabels.join( - ", " - )}` + `Exactly one primary label must be set from [${PRIMARY_LABELS.join(", ")}]. Found: ${primaryLabels.join(", ")}` ); }