Merge branch 'feature/5'
This commit is contained in:
commit
53525b9b52
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@byteb4rb1e/mime-todo",
|
"name": "@byteb4rb1e/mime-todo",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"description": "CLI for the MIME TODO issue tracker specification with Bugzilla integration",
|
"description": "CLI for the MIME TODO issue tracker specification with Bugzilla integration",
|
||||||
"author": "Tiara Rodney <me@tiararodney.com>",
|
"author": "Tiara Rodney <me@tiararodney.com>",
|
||||||
"license": "CC-BY-ND-4.0",
|
"license": "CC-BY-ND-4.0",
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ export function commitFile(path: string, message: string, cwd = process.cwd()):
|
||||||
export function commitFileWithBody(path: string, header: string, body: string, cwd = process.cwd()): void {
|
export function commitFileWithBody(path: string, header: string, body: string, cwd = process.cwd()): void {
|
||||||
execSync(`git add ${path}`, { cwd })
|
execSync(`git add ${path}`, { cwd })
|
||||||
const msg = `${header}\n\n${body}`
|
const msg = `${header}\n\n${body}`
|
||||||
execSync(`git commit -m ${JSON.stringify(msg)}`, { cwd })
|
execSync(`git commit -F -`, { cwd, input: msg })
|
||||||
}
|
}
|
||||||
|
|
||||||
export function branchExists(branch: string, cwd = process.cwd()): boolean {
|
export function branchExists(branch: string, cwd = process.cwd()): boolean {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue