Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .cz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Commitizen: `cz bump` derives the next version from Conventional Commits since
# the last tag. The release workflow runs it on every push to main.
[tool.commitizen]
name = "cz_conventional_commits"
version = "1.0.0"
version_provider = "commitizen"
version_scheme = "semver2"
tag_format = "v$version"
major_version_zero = false
update_changelog_on_bump = true
# The binaries take their version from the tag (see `ldflags` in mise.toml);
# only the git-stack pins in mise.toml carry it in a file.
version_files = ["mise.toml:github.com/mhvelplund/git-stack/cmd/git-stack"]
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Install with `mise install` (provides pre-commit) followed by `pre-commit install`.
# Go hooks run the mise-managed golangci-lint so versions match `mise run lint`.
# The commit-msg hook checks Conventional Commits, which drive the release version.
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
Expand All @@ -13,6 +16,11 @@ repos:
- id: check-merge-conflict
- id: check-added-large-files

- repo: https://github.com/commitizen-tools/commitizen
rev: v4.19.3
hooks:
- id: commitizen

- repo: local
hooks:
- id: golangci-lint-fmt
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Unreleased

## v1.0.0 (2026-10-24)

### Feat

- **ado**: add Azure DevOps provider plugin (git-stack-ado)

### Fix

- **ado**: require the azure-devops extension instead of installing it

## v0.2.0 (2026-10-24)

### Fix

- **bitbucket**: report a merge task that does not succeed
- **bitbucket**: follow the Location header when a merge returns 202
- **bitbucket**: find merged pull requests for a branch
- **bitbucket**: send x-token-auth git credentials as Bearer
- **forge**: name Bitbucket properly in user-facing messages
- **bitbucket**: stop waiting on a hung git credential helper

### Perf

- **bitbucket**: match branch restriction globs without regexps

## v0.1.0 (2026-10-24)
6 changes: 5 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ mise run dist # cross-compile into dist/ via scripts/dist
## Committing

- Use [Conventional Commits](https://www.conventionalcommits.org) messages, e.g. `fix(bitbucket): ...`,
`feat: ...`.
`feat: ...`. A commit-msg hook (commitizen) enforces it, because the types drive releases: on every push to
`main`, `.github/workflows/release.yml` runs `cz bump` (`feat` → minor, `fix`/`perf` → patch, `!` or
`BREAKING CHANGE:` → major; other types release nothing), which commits `bump: ...` (version in `.cz.toml`, the
git-stack pins in `mise.toml`, `CHANGELOG.md`), tags `vX.Y.Z` and publishes a GitHub release with the `dist/`
binaries. Don't edit those versions or `CHANGELOG.md` by hand.
- When pre-commit hooks fail, fix the reported problems. Never bypass the hooks (`--no-verify`, `SKIP=...`,
uninstalling them) unless the user approves it.

Expand Down
1 change: 1 addition & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ glab = "latest"
go = "1.26"
golangci-lint = "2"
pre-commit = "4"
"pipx:commitizen" = "4"

[vars]
ldflags = "-X=github.com/mhvelplund/git-stack/internal/cli.Version={{exec(command='git describe --tags --always --dirty')}}"
Expand Down
Loading