From 70d9429905980f2098e06a79c1674d765c2ef1df Mon Sep 17 00:00:00 2001 From: Andy Augustin Date: Sun, 16 Jun 2024 13:31:23 +0200 Subject: [PATCH] fix: :bug: issue with gh pr edit Signed-off-by: Andy Augustin --- src/sync_template.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sync_template.sh b/src/sync_template.sh index 9d2bbf0..c7b1faa 100755 --- a/src/sync_template.sh +++ b/src/sync_template.sh @@ -331,7 +331,7 @@ function create_pr() { # Arguments: # title # body -# branch +# upstream_branch # labels # reviewers ################################### @@ -339,11 +339,12 @@ function create_or_edit_pr() { info "create pr or edit the pr" local title=$1 local body=$2 - local branch=$3 + local upstream_branch=$3 local labels=$4 local reviewers=$5 + local pr_branch=$6 - create_pr "${title}" "${body}" "${branch}" "${labels}" "${reviewers}" || gh pr edit \ + create_pr "${title}" "${body}" "${upstream_branch}" "${labels}" "${reviewers}" || gh pr edit \ --title "${title}" \ --body "${body}" \ --add-label "${labels}" \