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
-7
View File
@@ -1,5 +1,3 @@
var parseSlug = require('@bahmutov/parse-github-repo-url')
var SemanticReleaseError = require('@semantic-release/error')
module.exports = function (config) {
@@ -20,11 +18,6 @@ module.exports = function (config) {
'No "repository" found in package.json.',
'ENOPKGREPO'
))
} else if (!parseSlug(pkg.repository.url)) {
errors.push(new SemanticReleaseError(
'The "repository" field in the package.json is malformed.',
'EMALFORMEDPKGREPO'
))
}
if (options.debug) return errors