refactor: replace .indexOf() with .includes() (#39195)
This commit is contained in:
parent
9cd5de7588
commit
2c52eb7e1c
5 changed files with 5 additions and 5 deletions
|
@ -50,7 +50,7 @@ async function getDraftRelease (version, skipValidation) {
|
|||
if (!skipValidation) {
|
||||
failureCount = 0;
|
||||
check(drafts.length === 1, 'one draft exists', true);
|
||||
if (versionToCheck.indexOf('beta') > -1) {
|
||||
if (versionToCheck.includes('beta')) {
|
||||
check(draft.prerelease, 'draft is a prerelease');
|
||||
}
|
||||
check(draft.body.length > 50 && !draft.body.includes('(placeholder)'), 'draft has release notes');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue