2025-05-06

This commit is contained in:
2025-05-06 10:00:00 -04:00
parent 7d16396efb
commit e41a2ba2ed
+4
View File
@@ -12,6 +12,10 @@ git commit -m "$COMMIT_MSG"
BRANCH=$(git name-rev --name-only HEAD) BRANCH=$(git name-rev --name-only HEAD)
gum confirm "Push?" && git push origin $BRANCH gum confirm "Push?" && git push origin $BRANCH
if [ "$BRANCH" = "main" || "$BRANCH" == "master" ]; then
exit 0
fi
CREATE_PR=$(gum confirm "Create PR?") CREATE_PR=$(gum confirm "Create PR?")
if [[ "${!#}" == "-pr" && CREATE_PR -eq 0 ]]; then if [[ "${!#}" == "-pr" && CREATE_PR -eq 0 ]]; then