Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxprilutskiy committed Nov 16, 2024
1 parent 9cc1edd commit 316508b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action/src/flows/pull-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class PullRequestFlow extends InBranchFlow {
}

// Attempt to merge base branch, preferring base branch changes in case of conflicts
execSync(`git merge ${this.config.baseBranchName} --allow-unrelated-histories -X ours --no-commit`, { stdio: 'inherit' });
execSync(`git merge ${this.config.baseBranchName} -s recursive -X theirs --allow-unrelated-histories --no-commit`, { stdio: 'inherit' });
// Rollback changes in target files
for (const file of targetFiles) {
execSync(`git checkout -- "${file}"`, { stdio: 'inherit' });
Expand Down
3 changes: 3 additions & 0 deletions file1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# File 1

This is file 1.
3 changes: 3 additions & 0 deletions file2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# File 2

This is file 2.

0 comments on commit 316508b

Please sign in to comment.