Commit cf98e9b
* Initial plan
* Changes before error encountered
Co-authored-by: setchy <386277+setchy@users.noreply.github.com>
* Changes before error encountered
Co-authored-by: setchy <386277+setchy@users.noreply.github.com>
* wip
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* Revert previous changes to start fresh migration to Octokit
Co-authored-by: setchy <386277+setchy@users.noreply.github.com>
* Migrate from axios to @octokit for GitHub API requests
- Install @octokit/core, @octokit/plugin-paginate-rest, @octokit/plugin-rest-endpoint-methods
- Create Octokit client utility with GitHub.com and Enterprise Server support
- Migrate REST requests to use Octokit instead of axios
- Migrate GraphQL requests to use Octokit's graphql method
- Update Jest configuration for Octokit ES modules
- Update request.test.ts and client.test.ts to work with Octokit
- Remove axios dependency from test-utils
- Fix all linting issues
- Most tests passing (98 suites), nock-based tests need mocking adjustments
* Address code review feedback
- Remove redundant header generation (Octokit handles auth)
- Fix GraphQL response headers not being overwritten
- Use property shorthand in octokit.ts
- Update test expectations for removed headers parameter
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor: use octokit client
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* remove axios test helper
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* remove axios references
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor esm packages
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* introduce client builder and caches for rest and graphql
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* restore header for ghes version
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* introduce client builder and caches for rest and graphql
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* improve graphql error handling
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* refactor graphql response shapes
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix tests
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix test
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix test
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix test
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix test
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix test
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix tests and remove nock
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix authentication - skip client cache
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix authentication - skip client cache
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix authentication - skip client cache
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* update gen
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix lint
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix lint
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* add retry plugin
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* add never return type
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* update error handler
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* fix lockfile
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* improve coverage
Signed-off-by: Adam Setch <adam.setch@outlook.com>
* improve coverage
Signed-off-by: Adam Setch <adam.setch@outlook.com>
---------
Signed-off-by: Adam Setch <adam.setch@outlook.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: setchy <386277+setchy@users.noreply.github.com>
Co-authored-by: Adam Setch <adam.setch@outlook.com>
1 parent a57941f commit cf98e9b
46 files changed
Lines changed: 1601 additions & 1592 deletions
File tree
- .github
- src/renderer
- __helpers__
- __mocks__/@octokit
- context
- hooks
- utils
- api
- graphql
- generated
- auth
- notifications
- handlers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
169 | 171 | | |
170 | | - | |
171 | 172 | | |
172 | 173 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
3 | 31 | | |
4 | 32 | | |
5 | 33 | | |
| |||
13 | 41 | | |
14 | 42 | | |
15 | 43 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 44 | + | |
| 45 | + | |
22 | 46 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 47 | | |
28 | 48 | | |
29 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | | - | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
97 | | - | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | | - | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | | - | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
0 commit comments