Repository navigation
Commit 89cb812
fix(server): pull requests load for credentials that cannot read /user
Before any pull request read, T3 checks who the credential belongs to with
REST GET /user. A GitHub App installation token is refused there with 403
"Resource not accessible by integration", so the pull request list and
watches fail even though every GraphQL read they make would succeed.
When /user answers a plain 403, ask GraphQL `viewer { databaseId login }`
instead. Rate limits, 401s, and other failures behave as before, and
credentials that can read /user make the same single request.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 511d20c commit 89cb812
2 files changed
Lines changed: 65 additions & 4 deletions
File tree
- packages/source-control-github/src/server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3278 | 3278 | | |
3279 | 3279 | | |
3280 | 3280 | | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
3281 | 3311 | | |
3282 | 3312 | | |
3283 | 3313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1127 | 1136 | | |
1128 | 1137 | | |
1129 | 1138 | | |
| |||
1148 | 1157 | | |
1149 | 1158 | | |
1150 | 1159 | | |
1151 | | - | |
| 1160 | + | |
1152 | 1161 | | |
1153 | 1162 | | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1154 | 1188 | | |
1155 | 1189 | | |
1156 | 1190 | | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | 1191 | | |
1161 | 1192 | | |
1162 | 1193 | | |
| |||
0 commit comments