Skip to content

feat(release): add --dry-run flag to /release command#1

Merged
AbdullahSAhmad merged 2 commits into
mainfrom
feature/release-dry-run
Apr 6, 2026
Merged

feat(release): add --dry-run flag to /release command#1
AbdullahSAhmad merged 2 commits into
mainfrom
feature/release-dry-run

Conversation

@AbdullahSAhmad

Copy link
Copy Markdown
Owner

Summary

  • Adds --dry-run flag to the /release slash command
  • Previews next version, changelog section, and tag name without writing files, committing, tagging, or pushing
  • Tests still run on dry-run so the preview reflects what a real release would do

Test plan

  • tsc clean
  • 73/73 tests pass
  • Manual: /release patch --dry-run produces preview block and makes no writes

Adds a preview mode to the /release slash command that computes the
next version, changelog section, and tag name without writing any
files, committing, tagging, or pushing. Tests still run so the preview
only reports success when a real release would also succeed.

- Frontmatter argument-hint advertises [--dry-run]
- New "Argument parsing" section detects --dry-run anywhere in $ARGUMENTS
- Steps 3/5/6 guarded: dirty-check warn-only, version/changelog compute-only
- Step 7 branched: preview block vs real git add/commit/tag/push
- Step 8 report branched on DRY_RUN
- "Important" section extended with explicit NEVER-write guard list
- New Examples section documents dry-run usage
@AbdullahSAhmad AbdullahSAhmad merged commit 8b48302 into main Apr 6, 2026
3 checks passed
@AbdullahSAhmad AbdullahSAhmad deleted the feature/release-dry-run branch April 6, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant