forked from C-Hipple/code-review-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.config.toml
More file actions
49 lines (42 loc) · 1.35 KB
/
sample.config.toml
File metadata and controls
49 lines (42 loc) · 1.35 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
# Code Review Server Sample Configuration
# Copy this to ~/.config/codereviewserver.toml
# List of repositories to monitor
# Currently these are all matched to the workflow owner.
Repos = ["google/go-github", "pelletier/go-toml"]
# General Settings
JiraDomain = "your-domain.atlassian.net"
SleepDuration = 10 # Time to wait between updates (in minutes)
GithubUsername = "your-github-username"
RepoLocation = "~/" # Base directory where repos are cloned
AutoWorktree = false # Automatically manage worktrees for PRs
[SectionPriority]
"My Open PRs" = 10
"Needs My Team's Review" = 20
"Closed PRs" = 100
# Workflows define how PRs are gathered and displayed
[[Workflows]]
WorkflowType = "SyncReviewRequestsWorkflow"
Name = "My Open PRs"
Filters = ["FilterNotDraft"]
SectionTitle = "My Pull Requests"
IncludeDiff = true
[[Workflows]]
WorkflowType = "SingleRepoSyncReviewRequestsWorkflow"
Name = "Team Reviews"
Owner = "my-org"
Repo = "my-org/main-repo"
Teams = ["my-team", "my-other-team"]
SectionTitle = "Needs My Team's Review"
# Plugins allow extending the server with custom checks
[[Plugins]]
Name = "Security Check"
Command = "security_check" # Discover able on path with go install ./...
IncludeDiff = true
IncludeHeaders = true
IncludeComments = false
[[Plugins]]
Name = "Summarize"
Command = "summarize_diff"
IncludeDiff = true
IncludeHeaders = true
IncludeComments = true