Skip to content

Commit b43e85c

Browse files
committed
CONT-1219 : Addressing PR comments
1 parent 9d24b6e commit b43e85c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ export async function run(): Promise<void> {
1616
const token = core.getInput('token', {required: true})
1717
const client = new GitHubClient(token)
1818
const labels = client.getLabels()
19-
const hasCommunityLabel = labels && !labels.includes(labelName)
19+
const missingCommunityLabel = labels && !labels.includes(labelName)
2020

2121
if (
2222
(await client.checkOrgMembership(orgs)) ||
2323
client.isExcludedLogin(loginsToIgnore)
2424
) {
2525
if (failIfMember === 'true' && !labels) {
2626
core.setFailed(
27-
'The PR does not have the required label, please add it!'
27+
'The PR is missing a label!'
2828
)
2929
} else {
3030
core.info("Looks like this issue doesn't need labeling! 👍")
3131
}
3232
return
3333
}
3434

35-
if (hasCommunityLabel) {
35+
if (missingCommunityLabel) {
3636
core.setFailed(
3737
'Community PR must have a label name community, please add it!'
3838
)

0 commit comments

Comments
 (0)