grekt changelog
Generate changesets from git history for workspace artifacts.
bash
grekt changelog
grekt changelog --ciOptions
| Option | Description |
|---|---|
--ci | Unattended mode (no prompts, auto-calculate bumps from commits) |
--format <format> | Output format: changeset (default), json, yaml |
--since <ref> | Override base ref for change detection |
--dry-run | Preview without writing files |
Examples
bash
# Interactive — review and confirm bumps per artifact
grekt changelog
# CI mode — auto-generate from conventional commits
grekt changelog --ci
# Preview without writing
grekt changelog --dry-run
# Output as JSON instead of changeset files
grekt changelog --format json
# Detect changes since a specific ref
grekt changelog --since v1.0.0Output formats
Changeset (default)
Generates .changeset/*.md files in the workspace root:
markdown
---
"@scope/my-artifact": minor
---
- feat: add new validation rules
- fix: correct sync behaviorJSON / YAML
Prints structured output to stdout with base ref, artifact names, versions, bump types, and commits.
bash
grekt changelog --format json
grekt changelog --format yamlBehavior
Interactive mode (default)
- Detects base ref per artifact (from git tags or branch)
- Scans git history for conventional commits
- Maps changed files to workspace artifacts
- Prompts for bump type per artifact (patch, minor, major, skip)
- Generates output
CI mode (--ci)
- Same detection and analysis
- Auto-calculates bump from commits:
- Breaking changes →
major feat:→minor- Everything else →
patch
- Breaking changes →
- Non-conventional commits are warned and skipped
- Generates output without prompts
Base ref detection
Priority:
- Explicit
--sinceflag - Feature branch →
origin/<default-branch> - Default branch → per-artifact git tags (
@scope/name@version)
Full git history required
In CI, use fetch-depth: 0 in your checkout step. grekt changelog needs full git history to detect changes and parse commits.
Requirements
grekt-workspace.yamlin the current directory- Conventional commits for automatic bump calculation
Related commands
- grekt version - Apply version bumps
- grekt publish - Publish artifacts
- Monorepo guide - Full release workflow