Skip to content

Commit

Permalink
Fix label filter (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
anarast authored and chinthakagodawita committed Jan 16, 2020
1 parent 4f5feb8 commit 8b7ece6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autoupdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ class AutoUpdater {
}

for (const label of pull.labels) {
if (label.name in labels) {
if (labels.includes(label.name)) {
ghCore.info(
`Pull request has label '${label}' and PR branch is behind base branch.`
`Pull request has label '${label.name}' and PR branch is behind base branch.`
);
return true;
}
Expand Down

0 comments on commit 8b7ece6

Please sign in to comment.