mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +00:00
Update dist
This commit is contained in:
parent
e59197f91b
commit
3d4a25053b
2 changed files with 46 additions and 11 deletions
|
@ -57,7 +57,9 @@ export async function getChangesOnHead(): Promise<File[]> {
|
|||
export async function getChangesSinceMergeBase(base: string, ref: string, initialFetchDepth: number): Promise<File[]> {
|
||||
let baseRef: string | undefined
|
||||
async function hasMergeBase(): Promise<boolean> {
|
||||
return baseRef !== undefined && (await exec('git', ['merge-base', baseRef, ref], {ignoreReturnCode: true})).code === 0
|
||||
return (
|
||||
baseRef !== undefined && (await exec('git', ['merge-base', baseRef, ref], {ignoreReturnCode: true})).code === 0
|
||||
)
|
||||
}
|
||||
|
||||
let noMergeBase = false
|
||||
|
@ -200,8 +202,8 @@ async function getCommitCount(): Promise<number> {
|
|||
return isNaN(count) ? 0 : count
|
||||
}
|
||||
|
||||
async function getFullRef(shortName: string) {
|
||||
if(isGitSha(shortName)) {
|
||||
async function getFullRef(shortName: string): Promise<string | undefined> {
|
||||
if (isGitSha(shortName)) {
|
||||
return shortName
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue