Merge branch 'gt3-done-list-merges'

main v0.1.0
Yanick Champoux 2021-11-25 14:18:17 -05:00
commit dd5b0124d0
1 changed files with 10 additions and 2 deletions

View File

@ -2,6 +2,7 @@ const Git = require("simple-git");
const inquirer = require("inquirer");
const report = require("yurnalist");
const _ = require("lodash");
const fp = require("lodash/fp");
const myGit = require("../branches");
const log = require("../log");
@ -9,12 +10,19 @@ const log = require("../log");
module.exports = async (yargs) => {
if (!(await myGit.isClean())) {
log.error("workspace not clean, aborting");
return;
}
const current = await myGit.currentBranch();
log.success(`W00t! marking branch '${current}' as done`);
log.success(`W00t! marking branch '${current}' as done\n`);
await Git().addConfig(`branch.${current}.mikado-done`, true);
log.info(
"upstreams to merge with:",
await Git()
.getConfig(`branch.${current}.mikado-upstream`)
.then(fp.get("values"))
.then((x) => x.join(", "))
);
};