Skip to content

Commit 9dcf634

Browse files
committed
maint : fail PR my puppetlabs members if no label
1 parent e2cbb8b commit 9dcf634

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ export async function run(): Promise<void> {
2121
return
2222
}
2323

24+
// prettier-ignore
2425
if (
25-
(await client.checkOrgMembership(orgs)) ||
26-
client.isExcludedLogin(loginsToIgnore)
26+
(await client.checkOrgMembership(orgs) ||
27+
(client.isExcludedLogin(loginsToIgnore) && !client.hasLabel(labelName)))
2728
) {
28-
core.info("Looks like this issue doesn't need labeling! 👍")
29+
core.setFailed('The PR does not have any labels, please add the labels!')
2930
return
3031
}
3132

0 commit comments

Comments
 (0)