mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-06-28 04:43:44 +00:00
prefix
This commit is contained in:
parent
2de0a1208c
commit
731e463dfd
3 changed files with 8 additions and 0 deletions
4
cascading-pr.sh
Normal file → Executable file
4
cascading-pr.sh
Normal file → Executable file
|
@ -7,6 +7,7 @@ source $SELF_DIR/cascading-pr-lib.sh
|
|||
function run() {
|
||||
options[origin_host_port]=$(host_port ${options[origin_url]})
|
||||
options[destination_host_port]=$(host_port ${options[destination_url]})
|
||||
: ${options[prefix]:=${options[origin_repo]}}
|
||||
|
||||
# login destination
|
||||
# open a PR on destination
|
||||
|
@ -55,6 +56,9 @@ function main() {
|
|||
shift
|
||||
options[update]=$1
|
||||
;;
|
||||
--prefix)
|
||||
shift
|
||||
options[prefix]=$1
|
||||
*)
|
||||
"${1:-run}"
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue