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"