Skip to content

Commit 4e122e2

Browse files
committed
Don't fail when "from_name" cannot be found (#111)
1 parent eac344e commit 4e122e2

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

.res/labels.update.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
name: ":bug: bug"
77
color: "b60205"
88
description: ""
9+
- # new bug
10+
name: ":bug: new bug"
11+
color: "b60205"
12+
description: ""
13+
from_name: "bug"
914
- # documentation
1015
name: ":memo: documentation"
1116
color: "c5def5"

__tests__/labeler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const cases = [
1414
{
1515
skip: 13,
1616
exclude: 0,
17-
create: 0,
17+
create: 1,
1818
update: 2,
1919
rename: 1,
2020
delete: 3,

dist/index.js

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/labeler.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,6 @@ export class Labeler {
244244
});
245245
continue;
246246
}
247-
248-
labels.push({
249-
...fileLabel,
250-
ghaction_status: LabelStatus.Error,
251-
ghaction_log: `❌ Label '${fileLabel.from_name}' not found. Cannot rename`
252-
});
253-
continue;
254247
}
255248

256249
// Update

0 commit comments

Comments
 (0)