Skip to content

Commit 9829728

Browse files
Fix merge-bot update command checkout issue
The update command was failing because the checkout action wasn't specifying which repository to checkout from. This caused it to only fetch the default branches and not the PR branch. Added 'repository' parameter to the checkout action to explicitly specify the head repository, fixing the branch checkout issue. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b6f29ab commit 9829728

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/merge-bot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ jobs:
403403
if: steps.check_perms.outputs.has_permission == 'true'
404404
uses: actions/checkout@v4
405405
with:
406+
repository: ${{ steps.pr_info.outputs.head_repo }}
406407
ref: ${{ steps.pr_info.outputs.head_branch }}
407408
fetch-depth: 0
408409
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)