Skip to content

Commit 300306f

Browse files
committed
default labels to empty array
1 parent 3826853 commit 300306f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/labeler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as core from '@actions/core';
55
import {Inputs} from './context';
66
import {GitHub, getOctokitOptions, context} from '@actions/github/lib/utils';
77
import {config} from '@probot/octokit-plugin-config';
8-
import deepmerge from 'deepmerge';
98
export type Label = {
109
name: string;
1110
color: string;
@@ -213,7 +212,7 @@ export class Labeler {
213212
configs
214213
.map(config => {
215214
const labels = config.labels ? config.labels : config;
216-
return {labels};
215+
return {labels: labels || []};
217216
})
218217
.map(config => {
219218
config.labels.forEach(function (item: Label) {

0 commit comments

Comments
 (0)