* Get the default text for a review scope preset.
(scope: ReviewScope)
| 47 | * Get the default text for a review scope preset. |
| 48 | */ |
| 49 | function getReviewScopeText(scope: ReviewScope): string { |
| 50 | switch (scope) { |
| 51 | case 'conversation': |
| 52 | return 'all changes made in this conversation' |
| 53 | case 'uncommitted': |
| 54 | return 'uncommitted changes' |
| 55 | case 'branch': |
| 56 | return 'this branch compared to main' |
| 57 | case 'custom': |
| 58 | return '' |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Build a review prompt from scope or custom input. |