Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "gitpair", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"engines": { | ||
@@ -70,3 +70,2 @@ "node": ">=8" | ||
"lint-staged": "^8.1.5", | ||
"lodash": "^4.17.11", | ||
"prettier": "^1.17.0", | ||
@@ -73,0 +72,0 @@ "pretty-quick": "^1.10.0", |
import { bold } from 'chalk' | ||
import shuffle from 'lodash/shuffle' | ||
import pairingConfig from '../config/pairing' | ||
@@ -30,11 +29,9 @@ import run from '../utils/run' | ||
const authors = shuffle([...pairingConfig.coAuthors, me]) | ||
const [firstAuthor, ...coAuthors] = authors | ||
const { coAuthors } = pairingConfig | ||
const trailers = coAuthoringTrailers(coAuthors) | ||
const rawCommitMessage = stripCoAuthorship(run('git log -1 --pretty=%B')) | ||
const author = formatEmailAddress(firstAuthor) | ||
const command = `GITPAIR_RUNNING=1 git commit --amend --author "${author}" -m"${rawCommitMessage}\n\n${trailers}"` | ||
const author = formatEmailAddress(me) | ||
const command = `GITPAIR_RUNNING=1 git commit --amend -m"${rawCommitMessage}\n\n${trailers}"` | ||
log(bold('Rewriting last commit with the following info:')) | ||
log(`Author: ${formatEmailAddress(firstAuthor)}`) | ||
log(trailers) | ||
@@ -41,0 +38,0 @@ run(command) |
import { bold } from 'chalk' | ||
import pairingConfig from '../config/pairing' | ||
import shuffle from 'lodash/shuffle' | ||
import clipboardy from 'clipboardy' | ||
@@ -19,3 +18,3 @@ import coAuthoringTrailers from '../utils/co-authoring-trailers' | ||
const trailers = coAuthoringTrailers(shuffle(coAuthors)) | ||
const trailers = coAuthoringTrailers(coAuthors) | ||
console.log(trailers) | ||
@@ -22,0 +21,0 @@ clipboardy.writeSync(trailers) |
Sorry, the diff of this file is too big to display
24
3
1103574
796