diff options
author | Yigit Sever | 2023-01-02 23:26:50 +0300 |
---|---|---|
committer | Yigit Sever | 2023-01-02 23:26:50 +0300 |
commit | 68f0272232f95158f4808d05411d761c564cc5d3 (patch) | |
tree | 94a1093e7c96455e9d170bf8b1de55d8032a4169 /.local/bin/yc | |
parent | c60b5a2d054aa18e72f44b40935ba515b33e7ce9 (diff) | |
download | dotfiles-68f0272232f95158f4808d05411d761c564cc5d3.tar.gz dotfiles-68f0272232f95158f4808d05411d761c564cc5d3.tar.bz2 dotfiles-68f0272232f95158f4808d05411d761c564cc5d3.zip |
(yc): don't use semantic commits
they don't make sense for dotfiles
Diffstat (limited to '.local/bin/yc')
-rwxr-xr-x | .local/bin/yc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/.local/bin/yc b/.local/bin/yc index c0108cf..16c2e9b 100755 --- a/.local/bin/yc +++ b/.local/bin/yc | |||
@@ -1,11 +1,10 @@ | |||
1 | #!/usr/bin/env bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert") | ||
4 | SCOPE=$(gum input --placeholder "scope") | 3 | SCOPE=$(gum input --placeholder "scope") |
5 | 4 | ||
6 | test -n "$SCOPE" && SCOPE="($SCOPE)" | 5 | test -n "$SCOPE" && SCOPE="($SCOPE)" |
7 | 6 | ||
8 | SUMMARY=$(gum input --value "$TYPE$SCOPE: " --placeholder "summary of this change") | 7 | SUMMARY=$(gum input --value "$SCOPE: " --placeholder "summary of this change") |
9 | DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)") | 8 | DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)") |
10 | 9 | ||
11 | gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION" | 10 | gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION" |