Skip to content

Commit d859ee5

Browse files
abhinavgithub-actions[bot]
authored andcommitted
Release v0.23.0
1 parent b29f0f9 commit d859ee5

File tree

10 files changed

+22
-35
lines changed

10 files changed

+22
-35
lines changed

.changes/unreleased/Added-20260111-113311.yaml

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

.changes/unreleased/Added-20260111-124152.yaml

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

.changes/unreleased/Added-20260201-140938.yaml

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

.changes/unreleased/Added-20260201-181001.yaml

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

.changes/unreleased/Fixed-20260201-101102.yaml

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

.changes/v0.23.0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## <a name="v0.23.0">v0.23.0</a> - 2026-02-02
2+
### Added
3+
- git-spice now sets the `GIT_SPICE=1` environment variable for most external commands it spawns, including editors and Git itself. This may be used in, for example, Git hooks that need to detect if they are being run as part of a git-spice operation. For a demonstration of use, [see this recipe](https://abhinav.github.io/git-spice/recipes/#auto-track-branches-on-checkout).
4+
- Branch listings including `gs log` commands and commands that present a branch selection prompt, all now show paths for branches checked out in other worktrees.
5+
- submit: Detect and recreate navigation comments if they are deleted externally.
6+
- submit: Add `spice.submit.reviewers.addWhen` configuration option, which allows controlling whether reviewers configured with `spice.submit.reviewers` are added to draft change requests.
7+
### Fixed
8+
- gitlab: Token extraction for CLI-based authentication now supports the format used by glab CLI v1.66.0 and later.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ 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.23.0">v0.23.0</a> - 2026-02-02
9+
### Added
10+
- git-spice now sets the `GIT_SPICE=1` environment variable for most external commands it spawns, including editors and Git itself. This may be used in, for example, Git hooks that need to detect if they are being run as part of a git-spice operation. For a demonstration of use, [see this recipe](https://abhinav.github.io/git-spice/recipes/#auto-track-branches-on-checkout).
11+
- Branch listings including `gs log` commands and commands that present a branch selection prompt, all now show paths for branches checked out in other worktrees.
12+
- submit: Detect and recreate navigation comments if they are deleted externally.
13+
- submit: Add `spice.submit.reviewers.addWhen` configuration option, which allows controlling whether reviewers configured with `spice.submit.reviewers` are added to draft change requests.
14+
### Fixed
15+
- gitlab: Token extraction for CLI-based authentication now supports the format used by glab CLI v1.66.0 and later.
16+
817
## <a name="v0.22.0">v0.22.0</a> - 2026-01-07
918
### Changed
1019
- GitHub OAuth authentication now additionally requires the `read:org` scope.

doc/src/cli/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ will be combined with the configured reviewers.
368368

369369
### spice.submit.reviewers.addWhen
370370

371-
<!-- gs:version unreleased -->
371+
<!-- gs:version v0.23.0 -->
372372

373373
Controls when $$spice.submit.reviewers|configured reviewers$$
374374
are added to change requests.

doc/src/community/recipes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ description: >-
1111

1212
### Auto-track branches on checkout
1313

14-
<!-- gs:version unreleased -->
14+
<!-- gs:version v0.23.0 -->
1515

1616
Git's post-checkout hook can be used
1717
to invoke git-spice automatically when a branch is checked out,
1818
and track the branch with git-spice if it is not already tracked.
1919

2020
**Prerequisites:**
2121

22-
- git-spice <!-- gs:version unreleased -->
22+
- git-spice <!-- gs:version v0.23.0 -->
2323
- Git hooks are enabled
2424
(this is the default, but certain setups may disable them)
2525
- The repository is already initialized with git-spice ($$gs repo init$$)
@@ -100,7 +100,7 @@ and track the branch with git-spice if it is not already tracked.
100100

101101
- The post-checkout hook is invoked by Git after a checkout operation,
102102
whether with `git checkout` or `git switch`.
103-
- The script checks `GIT_SPICE` (added in <!-- gs:version unreleased -->)
103+
- The script checks `GIT_SPICE` (added in <!-- gs:version v0.23.0 -->)
104104
to ensure it does not interfere
105105
with git-spice's own operations (e.g. $$gs branch checkout$$).
106106
- It checks whether the new branch is already tracked by git-spice

internal/handler/submit/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ type Options struct {
162162

163163
Reviewers []string `short:"r" name:"reviewer" help:"Add reviewers to the change request. Pass multiple times or separate with commas." released:"v0.21.0"`
164164
ConfiguredReviewers []string `name:"configured-reviewers" help:"Default reviewers to add to change requests." hidden:"" config:"submit.reviewers" released:"v0.21.0"`
165-
ReviewersAddWhen ReviewersAddWhen `name:"reviewers-add-when" help:"When to add configured reviewers." hidden:"" config:"submit.reviewers.addWhen" default:"always" released:"unreleased"`
165+
ReviewersAddWhen ReviewersAddWhen `name:"reviewers-add-when" help:"When to add configured reviewers." hidden:"" config:"submit.reviewers.addWhen" default:"always" released:"v0.23.0"`
166166

167167
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"`
168168
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

Comments
 (0)