blob: c0108cf5f5991bee37fafc29d2fb8d453c430db2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert")
SCOPE=$(gum input --placeholder "scope")
test -n "$SCOPE" && SCOPE="($SCOPE)"
SUMMARY=$(gum input --value "$TYPE$SCOPE: " --placeholder "summary of this change")
DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)")
gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION"
|