fix style issues

Signed-off-by: Kenneth Feng <kenneth.feng@onepeloton.com>
This commit is contained in:
Kenneth Feng
2021-10-22 10:01:55 -04:00
parent e55a5dea09
commit b960209976
2 changed files with 5 additions and 8 deletions
@@ -172,9 +172,9 @@ describe('createPublishGithubPullRequestAction', () => {
commit: 'Create my new app',
files: {
'foo.txt': {
content: 'Hello there!',
encoding: 'utf-8',
mode: '100644',
content: 'Hello there!',
encoding: 'utf-8',
mode: '100644',
},
},
},
@@ -198,7 +198,7 @@ export const createPublishGithubPullRequestAction = ({
const absPath = path.resolve(fileRoot, filePath);
const content = fs.readFileSync(absPath).toString();
const fileStat = fs.statSync(absPath);
const isExecutable = fileStat.mode === 33277 // aka. 100755;
const isExecutable = fileStat.mode === 33277; // aka. 100755
// See the properties of tree items
// in https://docs.github.com/en/rest/reference/git#trees
const githubTreeItemMode = isExecutable ? '100755' : '100644';
@@ -216,10 +216,7 @@ export const createPublishGithubPullRequestAction = ({
const changes = [
{
files: zipObject(
repoFilePaths,
fileContents,
),
files: zipObject(repoFilePaths, fileContents),
commit: title,
},
];