File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,19 @@ Release {{version}}
6868{{/prs}}
6969```
7070
71+ ### GitHub Enterprise
72+ If you use this plugin in GitHub Enterprise, you can specify endpoint domain for GitHub Enterprise.
73+
74+ ``` javascript
75+ release ({
76+ token: ' token'
77+ owner: ' uiureo' ,
78+ repo: ' awesome-web-app' ,
79+ template: ' ./template.mustache'
80+ endpoint: ' https://github.yourdomain.com/api/v3'
81+ })
82+ ```
83+
7184## Example
7285
7386### hubot
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ function GithubClient (config) {
88 this . token = config . token
99 this . head = config . head || 'master'
1010 this . base = config . base || 'production'
11+ this . endpoint = config . endpoint || 'https://api.github.com'
1112}
1213
1314GithubClient . prototype . pullRequestEndpoint = function ( ) {
14- return 'https://api.github.com /repos/' + this . owner + '/' + this . repo + '/pulls'
15+ return this . endpoint + ' /repos/' + this . owner + '/' + this . repo + '/pulls'
1516}
1617
1718GithubClient . prototype . headers = function ( ) {
You can’t perform that action at this time.
0 commit comments