fix(backends): fix commit message handling (#1568)

This commit is contained in:
Caleb
2018-08-07 09:49:53 -06:00
committed by Shawn Erquhart
parent 4782c472bf
commit f7e7120db5
4 changed files with 46 additions and 15 deletions

View File

@ -316,6 +316,12 @@ export default class API {
.then(resp => {
const { sha } = resp.tree.find(file => file.path === filename);
const opts = { method: 'DELETE', params: { sha, message, branch } };
if (this.commitAuthor) {
opts.params.author = {
...this.commitAuthor,
date: new Date().toISOString(),
};
}
return this.request(fileURL, opts);
});
}