Fix eslint script and related code

This commit is contained in:
islishude 2023-09-18 21:05:08 +08:00
parent 72f2cec99f
commit ed3e1da142
12 changed files with 40 additions and 38 deletions

View file

@ -1,7 +1,7 @@
import {IGitCommandManager} from './git-command-manager'
import * as core from '@actions/core'
import * as github from '@actions/github'
import {getServerApiUrl, isGhes} from './url-helper'
import {IGitCommandManager} from './git-command-manager'
export const tagsRefSpec = '+refs/tags/*:refs/tags/*'
@ -227,7 +227,7 @@ export async function checkCommitInfo(
// Expected message?
const expectedMessage = `Merge ${expectedHeadSha} into ${expectedBaseSha}`
if (commitInfo.indexOf(expectedMessage) >= 0) {
if (commitInfo.includes(expectedMessage)) {
return
}