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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user