-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathconstants.ts
More file actions
57 lines (45 loc) · 1.67 KB
/
constants.ts
File metadata and controls
57 lines (45 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
* Code Reviews - Constants
*
* Constants used throughout the code review system.
*/
// ============================================================================
// Review Configuration
// ============================================================================
/** Default model for code reviews */
export const DEFAULT_CODE_REVIEW_MODEL = 'anthropic/claude-sonnet-4.6';
/**
* Default mode for cloud agent sessions
*/
export const DEFAULT_CODE_REVIEW_MODE = 'code' as const;
// ============================================================================
// Feature Flags
// ============================================================================
/** PostHog flag that gates incremental (diff-only) reviews on follow-up pushes */
export const FEATURE_FLAG_INCREMENTAL_REVIEW = 'code-review-incremental';
// ============================================================================
// Pagination
// ============================================================================
/**
* Default limit for listing code reviews
*/
export const DEFAULT_LIST_LIMIT = 50;
/**
* Maximum limit for listing code reviews
*/
export const MAX_LIST_LIMIT = 100;
/**
* Default offset for pagination
*/
export const DEFAULT_LIST_OFFSET = 0;
// ============================================================================
// GitHub Webhook Events
// ============================================================================
/**
* GitHub pull request actions that trigger code reviews
*/
export const CODE_REVIEW_TRIGGER_ACTIONS = ['opened', 'synchronize', 'reopened'] as const;
/**
* GitHub webhook event type for pull requests
*/
export const GITHUB_PR_EVENT_TYPE = 'pull_request';