mirror of
https://github.com/actions/checkout.git
synced 2026-01-22 16:58:54 +08:00
Fix eslint script and related code
This commit is contained in:
parent
72f2cec99f
commit
ed3e1da142
12 changed files with 40 additions and 38 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue