fix(glab): fix MR custom command
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user