Commit ce5f12c
Add GitHub Enterprise compatibility (#31)
* Add GitHub Enterprise compatibility
- Add `--base-url` argument for pointing at a GitHub Enterprise API URL.
- Add `--enterprise-compatibility` flag for loading the
[`@octokit/plugin-enterprise-compatibility`](https://github.com/octokit/plugin-enterprise-compatibility.js/)
plugin which is needed for the API to work against GitHub Enterprise's
API before v2.19.
- Add `--skip-update-branch-protection` flag for skipping the update
branch protection step. While this perhaps isn't ideal, this part of
the GraphQL API wasn't supported until GitHub Enterprise API v2.15. If
you weren't using protected branches, then this might be okay to skip.
- When running in verbose made, don't make failures to the rate limit
API fatal, since GitHub Enterprise API versions may not support this
endpoint.
- When updating the `default_branch` via the API, also pass the `name`
parameter, which appears to be required for some older API versions:
https://github.community/t/cannot-change-default-branch/13728/13
Co-authored-by: Michael Heap <m@michaelheap.com>1 parent 23f67cc commit ce5f12c
File tree
4 files changed
+83
-22
lines changed- bin
4 files changed
+83
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
55 | 80 | | |
56 | 81 | | |
57 | 82 | | |
| |||
114 | 139 | | |
115 | 140 | | |
116 | 141 | | |
117 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
118 | 151 | | |
119 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
120 | 159 | | |
121 | 160 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
128 | 174 | | |
129 | 175 | | |
130 | 176 | | |
| |||
208 | 254 | | |
209 | 255 | | |
210 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
211 | 261 | | |
212 | 262 | | |
213 | 263 | | |
| |||
221 | 271 | | |
222 | 272 | | |
223 | 273 | | |
224 | | - | |
| 274 | + | |
225 | 275 | | |
226 | 276 | | |
227 | 277 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments