fix(glab): fix MR custom command

This commit is contained in:
Oliver
2025-08-27 11:59:03 +02:00
parent 4f674f4a96
commit 724a51a7be

View File

@@ -175,11 +175,9 @@ function cmr() {
draft="" draft=""
fi fi
reviewers=""
if [[ $1 =~ .*",".* ]]; then if [[ $1 =~ .*",".* ]]; then
reviewers=$1; reviewers="--reviewer=$1";
else
echo "Needs at least two reviewers, only assigned"
return
fi; fi;
current_branch=$(git branch --show-current) current_branch=$(git branch --show-current)
@@ -198,7 +196,7 @@ function cmr() {
target_branch="master" target_branch="master"
fi fi
glab mr create -a oliver --reviewer=$reviewers --target-branch=$target_branch -t "Merge branch: '$(git branch --show-current)' into $target_branch" --fill -y $draft glab mr create -a oliver $reviewers --target-branch=$target_branch -t "Merge branch: '$(git branch --show-current)' into $target_branch" --fill -y $draft
} }
function glisu() { function glisu() {