New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitpair

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitpair - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc