feat(post): Adds GitHub Enterprise support

Adds githubApiPathPrefix option for GitHub Enterprise APIs. Removes parse-github-repo-url check from
verify to support custom GitHub URLs

closes #146
This commit is contained in:
jrwebdev
2016-01-18 18:29:15 +13:00
parent 6492693489
commit 2644badeec
4 changed files with 3 additions and 21 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ module.exports = function (config, cb) {
version: '3.0.0',
port: ghConfig.port,
protocol: (ghConfig.protocol || '').split(':')[0] || null,
host: ghConfig.hostname
host: ghConfig.hostname,
pathPrefix: options.githubApiPathPrefix || null
})
plugins.generateNotes(config, function (err, log) {