Skip to content

Commit

Permalink
fix: ignore not handled labels
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Nov 20, 2018
1 parent c5340c5 commit 1a1dfcd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/context/repoContext.js
Expand Up @@ -144,13 +144,8 @@ const initRepoContext = async (context, config) => {
updateStatusCheckFromLabels(
context,
[...newLabels]
.map((labelName) => {
const label = labelsValues.find((l) => l.name === labelName);
if (!label) {
throw new Error(`could not find label for ${labelName}`);
}
return label;
})
.map((labelName) => labelsValues.find((l) => l.name === labelName))
// ignore labels not handled, like "wip"
.filter(Boolean)
);
}
Expand Down

0 comments on commit 1a1dfcd

Please sign in to comment.