fix(post): correctly link issues and commits in changelog

This commit is contained in:
Stephan Bönnemann 2015-02-02 15:49:09 +01:00
parent bd90936927
commit a1c86fc0d0
2 changed files with 5 additions and 3 deletions

View File

@ -11,6 +11,7 @@
"confirm-simple": "^1.0.3",
"conventional-changelog": "0.0.11",
"github": "^0.2.3",
"github-url-from-git": "^1.4.0",
"minimist": "^1.1.0",
"parse-github-repo-url": "^1.0.0",
"semver": "^4.2.0"

View File

@ -5,7 +5,8 @@ var readFile = require('fs').readFileSync
var changelog = require('conventional-changelog')
var GitHubApi = require('github')
var parse = require('parse-github-repo-url')
var parseSlug = require('parse-github-repo-url')
var parseUrl = require('github-url-from-git')
var github = new GitHubApi({
version: '3.0.0'
@ -19,7 +20,7 @@ module.exports = function (options, cb) {
changelog({
version: pkg.version,
repository: repository,
repository: parseUrl(repository),
file: false
}, function(err, log) {
if (err) return cb(err)
@ -27,7 +28,7 @@ module.exports = function (options, cb) {
exec('git rev-parse HEAD', function(err, hash) {
if (err) return cb(err)
var ghRepo = parse(repository)
var ghRepo = parseSlug(repository)
var release = {
owner: ghRepo[0],
repo: ghRepo[1],