We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e122ce5 commit 7383bf5Copy full SHA for 7383bf5
lib/github-client.js
@@ -8,10 +8,11 @@ function GithubClient (config) {
8
this.token = config.token
9
this.head = config.head || 'master'
10
this.base = config.base || 'production'
11
+ this.endpoint = config.endpoint || 'https://api.github.com'
12
}
13
14
GithubClient.prototype.pullRequestEndpoint = function () {
- return 'https://api.github.com/repos/' + this.owner + '/' + this.repo + '/pulls'
15
+ return this.endpoint + '/repos/' + this.owner + '/' + this.repo + '/pulls'
16
17
18
GithubClient.prototype.headers = function () {
0 commit comments