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
-13
View File
@@ -25,19 +25,6 @@ test('verify pkg, options and env', function (t) {
tt.is(errors[0].code, 'ENOPKGNAME')
tt.is(errors[1].code, 'ENOPKGREPO')
var errors2 = verify({
options: {debug: true},
pkg: {
name: 'package',
repository: {
url: 'lol'
}
}
})
tt.is(errors2.length, 1)
tt.is(errors2[0].code, 'EMALFORMEDPKGREPO')
tt.end()
})