Commit 9af64bb
Use octocrab for GraphQL queries (#187)
Remove the manual use of reqwest::Client for graphql queries and use
octocrab instead.
This removes the need to specify the github api base url multiple times.
We instead leverage the global octocrab instance for which we configure
the api base url once.
This is beneficial for a cleaner implementation of Github Enterprise
support (#158), as we can configure the base url once.
For an example of what GHE support could look like on top of this, here
is a draft PR jtietema#1
---------
Co-authored-by: Sven Over <sp@cedenti.st>1 parent 217408a commit 9af64bb
3 files changed
+9
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 32 | + | |
| 33 | + | |
38 | 34 | | |
39 | | - | |
40 | | - | |
41 | 35 | | |
42 | 36 | | |
43 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
141 | 139 | | |
142 | | - | |
143 | 140 | | |
144 | 141 | | |
145 | 142 | | |
| |||
165 | 162 | | |
166 | 163 | | |
167 | 164 | | |
168 | | - | |
169 | 165 | | |
170 | 166 | | |
171 | 167 | | |
| |||
174 | 170 | | |
175 | 171 | | |
176 | 172 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 173 | + | |
| 174 | + | |
181 | 175 | | |
182 | | - | |
183 | | - | |
184 | 176 | | |
185 | 177 | | |
186 | 178 | | |
| |||
395 | 387 | | |
396 | 388 | | |
397 | 389 | | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
407 | 394 | | |
408 | 395 | | |
409 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 173 | | |
178 | 174 | | |
179 | 175 | | |
180 | | - | |
181 | 176 | | |
182 | 177 | | |
183 | 178 | | |
| |||
190 | 185 | | |
191 | 186 | | |
192 | 187 | | |
193 | | - | |
| 188 | + | |
194 | 189 | | |
195 | 190 | | |
196 | 191 | | |
| |||
0 commit comments