Skip to content

Commit b80f988

Browse files
authored
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.
1 parent 1bb6b55 commit b80f988

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/actions/pr-labels/src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ async function run() {
3737
core.debug(`Found primary labels: ${primaryLabels.join(", ")}`);
3838
if (primaryLabels.length !== 1) {
3939
throw new Error(
40-
`Exactly one primary label must be set. Found: ${primaryLabels.join(
41-
", "
42-
)}`
40+
`Exactly one primary label must be set from [${PRIMARY_LABELS.join(", ")}]. Found: ${primaryLabels.join(", ")}`
4341
);
4442
}
4543

0 commit comments

Comments
 (0)