Fix the update base script calling a non-existent contains function (#2499)

This commit is contained in:
haykam821 2021-06-21 07:00:03 -04:00 committed by GitHub
parent 930449aca3
commit affe4f3bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ jobs:
await github.pulls.updateBranch({ owner, repo, pull_number })
// Checks if the branch is a development version
if (contains(base, '-') || contains(base, 'w')) {
if (base.includes('-') || base.includes('w')) {
await github.issues.addLabels({ owner, repo, issue_number, labels: ['snapshot'] });
await github.issues.removeLabel({ owner, repo, issue_number, name: 'release' });
// Otherwise it's a release