From d023fe894db56e4890a26099b91987d6f897fd1a Mon Sep 17 00:00:00 2001 From: andev0x Date: Sun, 9 Nov 2025 10:35:31 +0700 Subject: [PATCH] Feat(core): introduce .commit_suggest_history for new feature --- .commit_suggest_history.json | 8 ++++++++ cmd/propose.go | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .commit_suggest_history.json diff --git a/.commit_suggest_history.json b/.commit_suggest_history.json new file mode 100644 index 0000000..4a8d56e --- /dev/null +++ b/.commit_suggest_history.json @@ -0,0 +1,8 @@ +{ + "entries": [ + { + "message": "Feat(cmd, templater): scaffold propose to enable bug fix", + "timestamp": "2025-11-09T10:21:44.009545+07:00" + } + ] +} \ No newline at end of file diff --git a/cmd/propose.go b/cmd/propose.go index 96c1234..facc408 100644 --- a/cmd/propose.go +++ b/cmd/propose.go @@ -31,7 +31,7 @@ var ( Use: "propose", Short: "Propose commit messages from git diff", Long: `Analyze staged changes and suggest commit messages based on the context. - + When using --interactive (-i) or --suggestions (-s), multiple suggestions will be shown ranked by how well they match the context (file types, changes, purposes). @@ -75,7 +75,7 @@ func runPropose(cmd *cobra.Command, args []string) error { } if len(changes) == 0 { - return fmt.Errorf("no staged changes") + return fmt.Errorf("⚠️ no staged changes") } analyzer := analyzer.NewAnalyzer(changes, cfg)