Comparing version 1.17.2 to 1.18.0
{ | ||
"name": "ggit", | ||
"description": "Local promise-returning git command wrappers", | ||
"version": "1.17.2", | ||
"version": "1.18.0", | ||
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>", | ||
@@ -59,2 +59,3 @@ "bin": { | ||
"git-issues": "1.3.1", | ||
"github-post-release": "1.7.1", | ||
"grunt": "0.4.5", | ||
@@ -106,3 +107,4 @@ "grunt-bump": "0.7.3", | ||
"release": { | ||
"analyzeCommits": "simple-commit-message" | ||
"analyzeCommits": "simple-commit-message", | ||
"generateNotes": "github-post-release" | ||
}, | ||
@@ -109,0 +111,0 @@ "repository": { |
@@ -11,5 +11,15 @@ 'use strict' | ||
var write = require('fs').writeFileSync | ||
var contents = JSON.stringify({ id: id }, null, 2) + '\n' | ||
var short = id.substr(0, 7) | ||
var data = { | ||
id: id, | ||
short: short | ||
} | ||
var contents = JSON.stringify(data, null, 2) + '\n' | ||
write(options.file, contents, 'utf8') | ||
console.log('saved last commit %s in file %s', id, options.file) | ||
console.log( | ||
'saved last commit %s (short %s) in file %s', | ||
id, | ||
short, | ||
options.file | ||
) | ||
} | ||
@@ -16,0 +26,0 @@ console.log('last commit:', id) |
55476
1315
25