feat(custom-commands): add an optional --target-branch flag to cmr command
This commit is contained in:
@@ -59,12 +59,10 @@ function v() {
|
||||
}
|
||||
|
||||
function dcu() {
|
||||
od
|
||||
docker-compose up --build $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
}
|
||||
|
||||
function dcud () {
|
||||
od
|
||||
docker-compose up -d --build $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||
}
|
||||
|
||||
@@ -194,6 +192,10 @@ function cmr() {
|
||||
target_branch="master"
|
||||
fi
|
||||
|
||||
if [[ $1 == "--target-branch" ]]; then
|
||||
target_branch=$2
|
||||
fi;
|
||||
|
||||
glab mr create -a oliver $reviewers --target-branch=$target_branch -t "Merge branch: '$(git branch --show-current)' into $target_branch" --fill -y $draft
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user