Skip to content

Commit abcc1eb

Browse files
authored
Release v0.21.0 (#964)
1 parent 1b53d31 commit abcc1eb

File tree

12 files changed

+69
-34
lines changed

12 files changed

+69
-34
lines changed

.changes/unreleased/Added-20251118-224817.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/unreleased/Added-20251127-115417.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/unreleased/Added-20251129-184632.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/unreleased/Fixed-20251127-122029.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/unreleased/Fixed-20251204-211214.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/unreleased/Fixed-20251204-211302.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.changes/v0.21.0.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
## <a name="v0.21.0">v0.21.0</a> - 2025-12-05
2+
3+
**Release highlight**:
4+
This release brings `--reviewer` and `--assign` flags to all submit commands.
5+
You can now request reviews or assign CRs at creation time, or during updates to existing CRs.
6+
Both flags have configuration variants: `spice.submit.reviewers` and `spice.submit.assignees` that are merged with flag values.
7+
8+
This unlocks a couple common use cases:
9+
10+
```bash
11+
# Always request reviews from my team
12+
git config spice.submit.reviewers '@example/my-team'
13+
14+
# Always assign submitted CRs to myself
15+
git config spice.submit.assignees $(whoami)
16+
```
17+
18+
### Added
19+
- submit: Add --reviewer flag and 'spice.submit.reviewers' configuration option to request reviews from specific users or teams upon CR submission.
20+
- submit: Add --assign flag and 'spice.submit.assignees' configuration option to assign CRs to users upon submission.
21+
- Branch selection prompt now supports pressing <kbd>Ctrl</kbd>+<kbd>U</kbd> to clear the search filter.
22+
23+
### Fixed
24+
- submit: --dry-run now reports which labels will be added to existing CRs upon submission.
25+
- branch submit: Check if the Git configuration prevents pushed branches from being tracked, which would leave those branches in a state where follow-up submits are not possible.
26+
- branch submit: Fix panic when updating CRs that have no upstream branch configured.

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,33 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
66
and is generated by [Changie](https://github.com/miniscruff/changie).
77

8+
## <a name="v0.21.0">v0.21.0</a> - 2025-12-05
9+
10+
**Release highlight**:
11+
This release brings `--reviewer` and `--assign` flags to all submit commands.
12+
You can now request reviews or assign CRs at creation time, or during updates to existing CRs.
13+
Both flags have configuration variants: `spice.submit.reviewers` and `spice.submit.assignees` that are merged with flag values.
14+
15+
This unlocks a couple common use cases:
16+
17+
```bash
18+
# Always request reviews from my team
19+
git config spice.submit.reviewers '@example/my-team'
20+
21+
# Always assign submitted CRs to myself
22+
git config spice.submit.assignees $(whoami)
23+
```
24+
25+
### Added
26+
- submit: Add --reviewer flag and 'spice.submit.reviewers' configuration option to request reviews from specific users or teams upon CR submission.
27+
- submit: Add --assign flag and 'spice.submit.assignees' configuration option to assign CRs to users upon submission.
28+
- Branch selection prompt now supports pressing <kbd>Ctrl</kbd>+<kbd>U</kbd> to clear the search filter.
29+
30+
### Fixed
31+
- submit: --dry-run now reports which labels will be added to existing CRs upon submission.
32+
- branch submit: Check if the Git configuration prevents pushed branches from being tracked, which would leave those branches in a state where follow-up submits are not possible.
33+
- branch submit: Fix panic when updating CRs that have no upstream branch configured.
34+
835
## <a name="v0.20.2">v0.20.2</a> - 2025-11-20
936
### Fixed
1037
- submit: Fix draft prompt being skipped for branches after the first one when submitting a stack interactively

doc/includes/cli-reference.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ only if there are multiple CRs in the stack.
265265
* `--no-verify`: Bypass pre-push hooks when pushing to the remote. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.15.0](/changelog.md#v0.15.0)</span>
266266
* `-u`, `--[no-]update-only`: Only update existing change requests, do not create new ones
267267
* `-l`, `--label=LABEL,...`: Add labels to the change request. Pass multiple times or separate with commas.
268-
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
269-
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
268+
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
269+
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
270270
* `--no-web`: Alias for --web=false.
271271

272272
**Configuration**: [spice.submit.assignees](/cli/config.md#spicesubmitassignees), [spice.submit.draft](/cli/config.md#spicesubmitdraft), [spice.submit.label](/cli/config.md#spicesubmitlabel), [spice.submit.listTemplatesTimeout](/cli/config.md#spicesubmitlisttemplatestimeout), [spice.submit.navigationComment](/cli/config.md#spicesubmitnavigationcomment), [spice.submit.navigationComment.downstack](/cli/config.md#spicesubmitnavigationcommentdownstack), [spice.submit.navigationCommentStyle.marker](/cli/config.md#spicesubmitnavigationcommentstylemarker), [spice.submit.navigationCommentSync](/cli/config.md#spicesubmitnavigationcommentsync), [spice.submit.publish](/cli/config.md#spicesubmitpublish), [spice.submit.reviewers](/cli/config.md#spicesubmitreviewers), [spice.submit.template](/cli/config.md#spicesubmittemplate), [spice.submit.updateOnly](/cli/config.md#spicesubmitupdateonly), [spice.submit.web](/cli/config.md#spicesubmitweb)
@@ -387,8 +387,8 @@ only if there are multiple CRs in the stack.
387387
* `--no-verify`: Bypass pre-push hooks when pushing to the remote. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.15.0](/changelog.md#v0.15.0)</span>
388388
* `-u`, `--[no-]update-only`: Only update existing change requests, do not create new ones
389389
* `-l`, `--label=LABEL,...`: Add labels to the change request. Pass multiple times or separate with commas.
390-
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
391-
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
390+
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
391+
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
392392
* `--no-web`: Alias for --web=false.
393393
* `--branch=NAME`: Branch to start at
394394

@@ -542,8 +542,8 @@ only if there are multiple CRs in the stack.
542542
* `--no-verify`: Bypass pre-push hooks when pushing to the remote. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.15.0](/changelog.md#v0.15.0)</span>
543543
* `-u`, `--[no-]update-only`: Only update existing change requests, do not create new ones
544544
* `-l`, `--label=LABEL,...`: Add labels to the change request. Pass multiple times or separate with commas.
545-
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
546-
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
545+
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
546+
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
547547
* `--no-web`: Alias for --web=false.
548548
* `--branch=NAME`: Branch to start at
549549

@@ -997,8 +997,8 @@ only if there are multiple CRs in the stack.
997997
* `--no-verify`: Bypass pre-push hooks when pushing to the remote. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.15.0](/changelog.md#v0.15.0)</span>
998998
* `-u`, `--[no-]update-only`: Only update existing change requests, do not create new ones
999999
* `-l`, `--label=LABEL,...`: Add labels to the change request. Pass multiple times or separate with commas.
1000-
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
1001-
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag-hidden:{ title="Released in version" }</span><span class="mdx-badge__text">Unreleased</span>
1000+
* `-r`, `--reviewer=REVIEWER,...`: Add reviewers to the change request. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
1001+
* `-a`, `--assign=ASSIGNEE,...`: Assign the change request to these users. Pass multiple times or separate with commas. <span class="mdx-badge"><span class="mdx-badge__icon">:material-tag:{ title="Released in version" }</span><span class="mdx-badge__text">[v0.21.0](/changelog.md#v0.21.0)</span>
10021002
* `--no-web`: Alias for --web=false.
10031003
* `--title=TITLE`: Title of the change request
10041004
* `--body=BODY`: Body of the change request

doc/src/cli/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ This option affects both interactive and non-interactive modes:
330330

331331
### spice.submit.assignees
332332

333-
<!-- gs:version unreleased -->
333+
<!-- gs:version v0.21.0 -->
334334

335335
Assign the configured users to all submitted and updated change requests
336336
when using $$gs branch submit$$ and friends.
@@ -354,7 +354,7 @@ will be combined with the configured labels.
354354

355355
### spice.submit.reviewers
356356

357-
<!-- gs:version unreleased -->
357+
<!-- gs:version v0.21.0 -->
358358

359359
Add the configured reviewers to all submitted and updated change requests
360360
when using $$gs branch submit$$ and friends.

0 commit comments

Comments
 (0)