mirror of
https://code.forgejo.org/actions/cascading-pr.git
synced 2025-06-28 04:43:44 +00:00
forked origin requires a forked destination
Fixes: https://code.forgejo.org/actions/cascading-pr/issues/10
This commit is contained in:
parent
277569106a
commit
dd5427bc63
3 changed files with 141 additions and 32 deletions
|
@ -115,6 +115,18 @@ function scheme() {
|
|||
echo "${url%%://*}"
|
||||
}
|
||||
|
||||
function owner() {
|
||||
local repo="$1"
|
||||
|
||||
echo "${repo%%/*}"
|
||||
}
|
||||
|
||||
function repository() {
|
||||
local repo="$1"
|
||||
|
||||
echo "${repo##*/}"
|
||||
}
|
||||
|
||||
function get_status() {
|
||||
local api="$1"
|
||||
local sha="$2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue