Commit f7b956d
Fix hostname support for Enterprise installations of GitHub (#118)
Per the [documentation](https://developer.github.com/enterprise/2.16/v3/#current-version), enterprise installations support a base URL of `http(s)://[hostname]/api/v3` in addition to the existing support of `http(s)://api.[hostname]/`. This PR updates the module to _always_ use the `http(s)://[hostname]/api/v3` syntax when `[hostname]` is _not_ `github.com`.
Fixes #1171 parent f0bd316 commit f7b956d
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
157 | 164 | | |
158 | 165 | | |
159 | 166 | | |
| |||
966 | 973 | | |
967 | 974 | | |
968 | 975 | | |
969 | | - | |
| |||
0 commit comments