Skip to content

Commit e289e72

Browse files
author
nejc
committed
fix: ensure upstream changes are included in PR commits
- Add conflicted files to staging area before committing - Ensures upstream changes are properly included in PR - Fixes issue where only local changes were committed
1 parent 8cabdd2 commit e289e72

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Console/Commands/UpstreamUpgradeCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ private function createPullRequest(): int
266266
if ($hasConflicts) {
267267
$commitMessage = $cfg['commit_message'].' (with merge conflicts)';
268268
$this->line('📝 Committing changes with merge conflicts for PR creation...');
269+
270+
// Add all conflicted files to ensure upstream changes are included
271+
$run('add conflicted files', [$cfg['git_binary'], 'add', '.']);
269272
} else {
270273
$commitMessage = $cfg['commit_message'];
271274
}

0 commit comments

Comments
 (0)