fix(post): correctly link issues and commits in changelog
This commit is contained in:
parent
bd90936927
commit
a1c86fc0d0
@ -11,6 +11,7 @@
|
|||||||
"confirm-simple": "^1.0.3",
|
"confirm-simple": "^1.0.3",
|
||||||
"conventional-changelog": "0.0.11",
|
"conventional-changelog": "0.0.11",
|
||||||
"github": "^0.2.3",
|
"github": "^0.2.3",
|
||||||
|
"github-url-from-git": "^1.4.0",
|
||||||
"minimist": "^1.1.0",
|
"minimist": "^1.1.0",
|
||||||
"parse-github-repo-url": "^1.0.0",
|
"parse-github-repo-url": "^1.0.0",
|
||||||
"semver": "^4.2.0"
|
"semver": "^4.2.0"
|
||||||
|
@ -5,7 +5,8 @@ var readFile = require('fs').readFileSync
|
|||||||
|
|
||||||
var changelog = require('conventional-changelog')
|
var changelog = require('conventional-changelog')
|
||||||
var GitHubApi = require('github')
|
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({
|
var github = new GitHubApi({
|
||||||
version: '3.0.0'
|
version: '3.0.0'
|
||||||
@ -19,7 +20,7 @@ module.exports = function (options, cb) {
|
|||||||
|
|
||||||
changelog({
|
changelog({
|
||||||
version: pkg.version,
|
version: pkg.version,
|
||||||
repository: repository,
|
repository: parseUrl(repository),
|
||||||
file: false
|
file: false
|
||||||
}, function(err, log) {
|
}, function(err, log) {
|
||||||
if (err) return cb(err)
|
if (err) return cb(err)
|
||||||
@ -27,7 +28,7 @@ module.exports = function (options, cb) {
|
|||||||
exec('git rev-parse HEAD', function(err, hash) {
|
exec('git rev-parse HEAD', function(err, hash) {
|
||||||
if (err) return cb(err)
|
if (err) return cb(err)
|
||||||
|
|
||||||
var ghRepo = parse(repository)
|
var ghRepo = parseSlug(repository)
|
||||||
var release = {
|
var release = {
|
||||||
owner: ghRepo[0],
|
owner: ghRepo[0],
|
||||||
repo: ghRepo[1],
|
repo: ghRepo[1],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user