Skip to content

Commit

Permalink
fix: 🐛 issue with gh pr edit
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Augustin <dev@andreas-augustin.org>
  • Loading branch information
AndreasAugustin committed Jun 16, 2024
1 parent d1b4d54 commit 70d9429
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sync_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -331,19 +331,20 @@ function create_pr() {
# Arguments:
# title
# body
# branch
# upstream_branch
# labels
# reviewers
###################################
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}" \
Expand Down

0 comments on commit 70d9429

Please sign in to comment.