Skip to content

Commit

Permalink
gen-changelog: Fix error introduced in graphql#3872
Browse files Browse the repository at this point in the history
Context: I made this mistake in graphql#3872, fixing in this PR
  • Loading branch information
IvanGoncharov committed Apr 6, 2023
1 parent ddd6a01 commit d1b6a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/gen-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function genChangeLog(): Promise<string> {
}

const label = labels[0];
if (labelsConfig[label] != null) {
if (labelsConfig[label] == null) {
throw new Error(`Unknown label: ${label}. See ${pr.url}`);
}
byLabel[label] ??= [];
Expand Down

0 comments on commit d1b6a0c

Please sign in to comment.