Skip to content

Commit

Permalink
list possible primary labels
Browse files Browse the repository at this point in the history
list the expected primary label - I was getting confused making a docs PR because type::documentation is not in the PRIMARY_LABELS list.
  • Loading branch information
adamancini authored May 2, 2024
1 parent 1bb6b55 commit b80f988
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/actions/pr-labels/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ")}`
);
}

Expand Down

0 comments on commit b80f988

Please sign in to comment.