You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new configuration option to control when configured reviewers
are added to change requests.
When set to "ready", reviewers configured via spice.submit.reviewers
are skipped for draft CRs. Reviewers specified via the --reviewer flag
are always added regardless of this setting.
Accepted values:
- "always" (default): add configured reviewers to all CRs
- "ready": only add configured reviewers when the CR is not a draft
Fixes#968
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: internal/handler/submit/handler.go
+77-9Lines changed: 77 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -160,8 +160,9 @@ type Options struct {
160
160
Labels []string`name:"label" short:"l" help:"Add labels to the change request. Pass multiple times or separate with commas."`
161
161
ConfiguredLabels []string`name:"configured-labels" help:"Default labels to add to change requests." hidden:"" config:"submit.label"`// merged with Labels
162
162
163
-
Reviewers []string`short:"r" name:"reviewer" help:"Add reviewers to the change request. Pass multiple times or separate with commas." released:"v0.21.0"`
164
-
ConfiguredReviewers []string`name:"configured-reviewers" help:"Default reviewers to add to change requests." hidden:"" config:"submit.reviewers" released:"v0.21.0"`// merged with Reviewers
163
+
Reviewers []string`short:"r" name:"reviewer" help:"Add reviewers to the change request. Pass multiple times or separate with commas." released:"v0.21.0"`
164
+
ConfiguredReviewers []string`name:"configured-reviewers" help:"Default reviewers to add to change requests." hidden:"" config:"submit.reviewers" released:"v0.21.0"`
165
+
ReviewersAddWhenReviewersAddWhen`name:"reviewers-add-when" help:"When to add configured reviewers." hidden:"" config:"submit.reviewers.addWhen" default:"always" released:"unreleased"`
165
166
166
167
Assignees []string`short:"a" name:"assign" placeholder:"ASSIGNEE" help:"Assign the change request to these users. Pass multiple times or separate with commas." released:"v0.21.0"`
167
168
ConfiguredAssignees []string`name:"configured-assignees" help:"Default assignees to add to change requests." hidden:"" config:"submit.assignees" released:"v0.21.0"`// merged with Assignees
0 commit comments