Skip to content

Commit 48835f1

Browse files
v0.2.2
1 parent a9be45a commit 48835f1

File tree

3 files changed

+168
-2
lines changed

3 files changed

+168
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules
2-
dist
3-
coverage
2+
coverage

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
```md
2+
# Release Notes - v0.2.2
3+
4+
## Features
5+
- Added GitHub Action workflow to publish package automatically on npm when a release is created.
6+
- Introduced `.gitsumsrc` config file support to override global settings including model, ignore files, and custom AI prompts.
7+
- Added support for custom AI prompts for analyzing git diffs via CLI option `--set-custom` and `-C` flag.
8+
- Enabled risk analysis of code changes using `-r` / `--risks` CLI flag.
9+
- Added commands to manage ignore files: add (`-ia`), remove (`-ir`), and list (`-il`).
10+
- Added CLI command to set OpenAI API key (`-k` / `--set-key`) and model (`-m` / `--set-model`).
11+
- Provided a unified `gitsums` CLI command alongside legacy `gitsum`.
12+
- Enhanced output messages and error handling with success/error callbacks.
13+
- Added `MainController` class to unify logic for configuration, git diff fetching, and AI analysis.
14+
- Enabled advanced changelog generation with a custom prompt and CLI script command.
15+
16+
## Improvements
17+
- Refactored codebase to improve configuration loading, supporting local `.gitsumsrc` and environment variables.
18+
- Improved CLI argument parsing and error feedback.
19+
- Improved README documentation: corrected commands from `gitsum` to `gitsums`, documented new features including custom prompt usage.
20+
- Improved `ConfigService` and `GitDiffService` with callbacks for consistent logging and error handling.
21+
- Added new unit tests for custom prompt feature in `ChatGptService` and enhanced existing tests for config and git diff services.
22+
- Updated release script to automate build, lint, test, changelog generation, git tagging, and pushing steps before publishing.
23+
24+
## Fixes
25+
- Fixed reading and merging configuration from multiple sources and formats.
26+
- Fix bug with ignore files array handling to prevent duplicates.
27+
- Corrected CLI help and options for ignore file management.
28+
- Fixed error handling in Git diff retrieval.
29+
30+
## Miscellaneous
31+
- Renamed package and CLI binary from `gitsum` to `gitsums`.
32+
- Minor lint and style fixes.
33+
```

dist/index.cjs

Lines changed: 134 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)