diff --git a/src/operations/backport-commits.ts b/src/operations/backport-commits.ts index 0bc3687..1f087b2 100644 --- a/src/operations/backport-commits.ts +++ b/src/operations/backport-commits.ts @@ -132,18 +132,18 @@ export const backportCommitsToBranch = async (options: BackportOptions) => { changedFiles.map(async (changedFile) => { const onDiskPath = path.resolve(options.dir, changedFile); if (!(await fs.pathExists(onDiskPath))) { - return { + return { path: changedFile, - mode: '100644', + mode: '100644', type: 'blob', - sha: null as any, + sha: null, }; } const fileContents = await fs.readFile(onDiskPath); const stat = await fs.stat(onDiskPath); const userMode = (stat.mode & parseInt('777', 8)).toString(8)[0]; if (isUtf8(fileContents)) { - return { + return { path: changedFile, mode: userMode === '6' ? '100644' : '100755', type: 'blob', @@ -158,7 +158,7 @@ export const backportCommitsToBranch = async (options: BackportOptions) => { }), ); - return { + return { path: changedFile, mode: userMode === '6' ? '100644' : '100755', type: 'blob',