Skip to content

Commit 5ef36d7

Browse files
author
Ændrew Rininsland
committed
Merge pull request #150 from kpdecker/enterprise
Add support for github enterprise APIs
2 parents 4e7b00f + f13391d commit 5ef36d7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ See these pages for more info:
5050

5151
[Github API OAuth Overview] (http://developer.github.com/v3/oauth)
5252

53+
Enterprise Github instances may be specified using the `apiUrl` option:
54+
55+
```js
56+
var github = new Github({
57+
apiUrl: "https://serverName/api/v3",
58+
...
59+
});
60+
```
61+
5362
## Repository API
5463

5564

github.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
}
3434

3535

36-
var API_URL = 'https://api.github.com';
3736

3837
var Github = function(options) {
38+
var API_URL = options.apiUrl || 'https://api.github.com';
3939

4040
// HTTP Request Abstraction
4141
// =======

0 commit comments

Comments
 (0)