Commit b5de3b5
Add GitHub App auth with OAuth device flow, webhooks, and check runs
- Add GitHub App config: app_id, client_id, client_secret, private_key,
webhook_secret
- Implement OAuth device flow (POST /api/gh/auth/device, /poll, DELETE)
so users click "Connect with GitHub" instead of pasting PATs
- Add webhook endpoint (POST /api/webhooks/github) with HMAC-SHA256
signature verification — auto-starts PR review on opened/synchronize
- Add GitHub Check Runs — posts pass/fail status with annotations
directly on the PR commit after review completes
- Add installation token support for GitHub App identity (JWT + RS256)
- Frontend: two-tab setup (GitHub App vs PAT fallback), device flow UI
with code display + copy + polling, webhook status indicator
- Consolidate secret masking into mask_config_secrets() helper
- Simplify update_config masked field skipping (any "***" value skipped)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1a12ae6 commit b5de3b5
File tree
9 files changed
+1351
-196
lines changed- src
- server
- web/src
- api
- pages
9 files changed
+1351
-196
lines changedSome 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 | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
204 | 224 | | |
205 | 225 | | |
206 | 226 | | |
| |||
327 | 347 | | |
328 | 348 | | |
329 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
330 | 355 | | |
331 | 356 | | |
332 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
| 486 | + | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
| 688 | + | |
695 | 689 | | |
696 | 690 | | |
697 | 691 | | |
| |||
705 | 699 | | |
706 | 700 | | |
707 | 701 | | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
| 702 | + | |
| 703 | + | |
712 | 704 | | |
713 | 705 | | |
714 | 706 | | |
| |||
724 | 716 | | |
725 | 717 | | |
726 | 718 | | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
| 719 | + | |
734 | 720 | | |
735 | 721 | | |
736 | 722 | | |
| |||
741 | 727 | | |
742 | 728 | | |
743 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
744 | 740 | | |
745 | 741 | | |
746 | 742 | | |
| |||
1803 | 1799 | | |
1804 | 1800 | | |
1805 | 1801 | | |
1806 | | - | |
| 1802 | + | |
1807 | 1803 | | |
1808 | 1804 | | |
1809 | 1805 | | |
| |||
0 commit comments