Skip to content

Commit

Permalink
don't normalize labels with noDefaultLabels flag
Browse files Browse the repository at this point in the history
  • Loading branch information
laughedelic committed Apr 28, 2021
1 parent 0e92142 commit 338309b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/config.ts
Expand Up @@ -38,12 +38,12 @@ export function normalizeLabel(
*/
export function normalizeLabels(config: ConfigObject): ILabelDefinition[] {
if (config.labels) {
const userLabels: ILabelDefinition[] = config.labels.map(normalizeLabel);

if (config.noDefaultLabels) {
return userLabels;
return config.labels as ILabelDefinition[];
}

const userLabels: ILabelDefinition[] = config.labels.map(normalizeLabel);

const baseLabels = defaultLabels.filter(
(d) =>
!userLabels.some(
Expand Down

0 comments on commit 338309b

Please sign in to comment.