File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments