Skip to content

Commit

Permalink
Check ignoreCheck condition
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <[email protected]>
  • Loading branch information
KeisukeYamashita committed Jan 16, 2021
1 parent 76bd808 commit c1eef46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/merger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class Merger {
if (type === 'labels' && hasLabels.length === labels.length) {
failed = false
}
if (type === 'ignoreLabels' && !hasLabels.length) {
if (type === 'ignoreLabels' && hasLabels.length) {
failed = false
}

Expand All @@ -75,7 +75,7 @@ export class Merger {
type === 'labels' ? '' : "does't"
} contains all ${inspect(labels)} for PR labels ${inspect(
pr.labels.map(l => l.name)
)}`
)} and and failed: ${failed}`
}
}

Expand All @@ -99,7 +99,7 @@ export class Merger {
}

core.debug(
`Checked all labels for type:${type} and prLabels:${inspect(
`Checked atLeastOne labels for type:${type} and prLabels:${inspect(
pr.labels.map(l => l.name)
)}, hasLabels:${inspect(hasLabels)}, labels:${inspect(
labels
Expand Down

0 comments on commit c1eef46

Please sign in to comment.