HidemaruOwO / pummit

Create good commit message in CLI
MIT License
20 stars 1 forks source link

:1st_place_medal: --amendコマンドを実装する #13

Open HidemaruOwO opened 1 year ago

HidemaruOwO commented 1 year ago

新機能及び改善など

git commit -mと似た挙動をする--amendコマンドを実装する

Pull request / Issue 割振番号

No response

詳細

$ pummit --amend
🔍 Checking HEAD....
💡 Found the "wb モジュールの追加"

✏ Please edit commit message
Message:  wb モジュールの追加
# Messageのコミットメッセージの部分にはアンダーラインが引かれている

✅ Edited the commit message to ":wastebasket: モジュールの追加 (go.mod, go.sum)"

アンダーラインの出力方法 \e[2m

image

color.Underline

Checking HEADについて

どんなコミットをしたか記録する履歴を作成するhistory.json


{
    "remotes": [{
        "url": "git@github.com:HidemaruOwO/pummit.git",
        "branches": [{
                "name": "master",
                "commits": ["wb モジュールの削除", "w モジュールの追加"]
            },
            {
                "name": "develop",
                "commits": ["wb モジュールの削除", "w モジュールの追加"]
            }
        ]
    }]
}
HidemaruOwO commented 1 year ago

きみ、history.jsonを作るんじゃなくて、 gitのheadから持ってきてコミットメッセージをパースする方が良くない?