Commit 3f731e6
Replace personal GitHub token with GitHub App for feedback submission (#3545)
* Replace personal GitHub token with GitHub App for feedback submission
- Add @octokit/auth-app and @octokit/rest dependencies
- Replace YUJONGLEE_GITHUB_TOKEN_REPO with GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY, GITHUB_APP_INSTALLATION_ID
- Use Octokit with GitHub App authentication for creating issues and comments
- Remove issueType parameter (only use product/desktop label)
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
* Route bug reports to GitHub Issues with type Bug, feature requests to GitHub Discussions
- Add @octokit/graphql dependency for GitHub Discussions API
- Add GITHUB_REPO_ID and GITHUB_DISCUSSION_CATEGORY_ID env vars
- Bug reports: create GitHub Issue with type 'Bug' and product/desktop label
- Feature requests: create GitHub Discussion via GraphQL API
- Add getInstallationToken and createGitHubDiscussion functions
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
* Rename env vars to avoid GITHUB_ prefix restriction
- GITHUB_APP_ID -> CHARLIE_APP_ID
- GITHUB_APP_PRIVATE_KEY -> CHARLIE_APP_PRIVATE_KEY
- GITHUB_APP_INSTALLATION_ID -> CHARLIE_APP_INSTALLATION_ID
- GITHUB_REPO_ID -> CHAR_REPO_ID
- GITHUB_DISCUSSION_CATEGORY_ID -> CHAR_DISCUSSION_CATEGORY_ID
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
* Remove issueType parameter from createGitHubIssue function
GitHub Issues API does not support a type field, so removing it.
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
* Add back type field to createGitHubIssue function
GitHub REST API supports type field for issues as of March 2025.
See: https://github.blog/changelog/2025-03-18-github-issues-projects-rest-api-support-for-issue-types
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: john@hyprnote.com <john@hyprnote.com>1 parent 18784c6 commit 3f731e6
File tree
4 files changed
+282
-69
lines changed- apps/api
- src
- routes
4 files changed
+282
-69
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
65 | 87 | | |
66 | 88 | | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
70 | 92 | | |
71 | | - | |
72 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
73 | 96 | | |
74 | 97 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
104 | 116 | | |
105 | | - | |
106 | | - | |
107 | 117 | | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
111 | 121 | | |
112 | 122 | | |
113 | | - | |
| 123 | + | |
| 124 | + | |
114 | 125 | | |
115 | 126 | | |
116 | 127 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
121 | 171 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 172 | + | |
125 | 173 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
129 | 211 | | |
130 | 212 | | |
131 | 213 | | |
| |||
178 | 260 | | |
179 | 261 | | |
180 | 262 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 263 | + | |
| 264 | + | |
184 | 265 | | |
185 | 266 | | |
186 | 267 | | |
187 | 268 | | |
188 | 269 | | |
189 | 270 | | |
190 | 271 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 272 | | |
201 | 273 | | |
202 | | - | |
203 | | - | |
| 274 | + | |
| 275 | + | |
204 | 276 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
210 | 280 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
214 | 284 | | |
215 | 285 | | |
216 | 286 | | |
| |||
223 | 293 | | |
224 | 294 | | |
225 | 295 | | |
226 | | - | |
227 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
228 | 310 | | |
229 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
230 | 333 | | |
231 | 334 | | |
0 commit comments