feat: CLI with generate/publish/init, GitHub Releases, integration tests#3
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implements the changelog generator (Task 7) with product and technical Handlebars templates. Templates are inlined as string constants to avoid __dirname/fileURLToPath issues in tsup bundles. Registers eq, hasItems, and filterByType Handlebars helpers. Supports custom template paths via config. Also fixes pre-existing simpleGit import issue in git.ts and adds .prettierignore for .hbs files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Implements config loader (Task 8) with loadConfig() and initConfig(). loadConfig() reads ai-changelog.config.json from a given directory and merges with defaults. initConfig() creates the config file with default values, creating parent directories as needed. Uses rmSync (not deprecated rmdirSync) for test cleanup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
TDD implementation of createGithubRelease() using @octokit/rest. GITHUB_TOKEN env var only, no gh CLI fallback. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Full CLI replacing stub entry point. Includes: - generate: changelog from git history with GSD fallback to commit type grouping - publish: push changelog to GitHub Releases - init: create config file - --output prepends new version on top of existing file - --to value used as version label when not HEAD Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7 CLI integration tests covering help, version, generate, technical format, file output, init, and version label from --to flag. README updated with problem statement, installation, usage, output format examples, GSD integration, configuration, and exit codes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/github.ts) with mock-based tests (3 tests)generate,publish,initcommands with GSD fallback to commit type grouping,--outputprepend behavior, and--toversion label detectionKey decisions implemented
GITHUB_TOKENenv var only, noghCLI fallback--outputprepends new version on top of existing file content.planning/dir exists, warn and group by commit type--tovalue as version when it's not "HEAD"Test plan
npm run format— cleannpm run lint— cleannpm run build— cleannode dist/index.js generate --to HEADworksnode dist/index.js generate --to HEAD --format technicalworksnode dist/index.js --helpshows all commands🤖 Generated with Claude Code