From e87b794d5d1632e81375d6bfe7f3c46d424fdc01 Mon Sep 17 00:00:00 2001 From: bikobi Date: Sun, 7 Apr 2024 15:42:10 +0100 Subject: [PATCH] added a gum committer --- git-commit.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 git-commit.sh diff --git a/git-commit.sh b/git-commit.sh new file mode 100755 index 0000000..9afe41a --- /dev/null +++ b/git-commit.sh @@ -0,0 +1,8 @@ +#!/bin/env bash + +gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert" +gum input --placeholder "scope" +gum input --value "$TYPE$SCOPE: " --placeholder "Summary of this change" +gum write --placeholder "Details of this change" +gum confirm "Commit changes?" && git add . && git commit -m "$SUMMARY" -m "$DESCRIPTION" +gum confirm "Commit changes?" && git commit -m "$SUMMARY" -m "$DESCRIPTION"