From b061e82b213b7547fabbf23f8b2db3246e7ef91d Mon Sep 17 00:00:00 2001 From: dpi Date: Thu, 2 Oct 2025 16:02:47 +0800 Subject: [PATCH] Always provide `--repo` in case the repo in context was forked --- src/scripts/patchy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/patchy.sh b/src/scripts/patchy.sh index fa1719c..fa74023 100755 --- a/src/scripts/patchy.sh +++ b/src/scripts/patchy.sh @@ -26,7 +26,7 @@ else git commit -m "[PATCHY] Updates config" || echo "No config changes" git push -f origin $PATCHY_BRANCH # Create a new PR or updating existing. - gh pr create -t "[PATCHY] Updates composer dependencies" -F /tmp/lock-diff.txt || gh pr edit $PATCHY_BRANCH -F /tmp/lock-diff.txt + gh pr create --repo "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" -t "[PATCHY] Updates composer dependencies" -F /tmp/lock-diff.txt || gh pr edit --repo "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" $PATCHY_BRANCH -F /tmp/lock-diff.txt fi # Reset defaults. git checkout "$CURRENT_BRANCH"