Commit 567c2cbe authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

eslint-fix

parent 028c6113
...@@ -26,13 +26,11 @@ const RepoCommitSection = { ...@@ -26,13 +26,11 @@ const RepoCommitSection = {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions // see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const branch = Helper.getBranch(); const branch = Helper.getBranch();
const commitMessage = this.commitMessage; const commitMessage = this.commitMessage;
const actions = this.changedFiles.map((f) => { const actions = this.changedFiles.map(f => ({
return { action: 'update',
action: 'update', file_path: Helper.getFilePathFromFullPath(f.url, branch),
file_path: Helper.getFilePathFromFullPath(f.url, branch), content: f.newContent,
content: f.newContent, }));
};
});
const payload = { const payload = {
branch: Store.targetBranch, branch: Store.targetBranch,
commit_message: commitMessage, commit_message: commitMessage,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment