MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getReviewScopeText

Function getReviewScopeText

cli/src/commands/prompt-builders.ts:49–60  ·  view source on GitHub ↗

* Get the default text for a review scope preset.

(scope: ReviewScope)

Source from the content-addressed store, hash-verified

47 * Get the default text for a review scope preset.
48 */
49function 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.

Callers 1

buildReviewPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected