Skip to content

Commit 431e482

Browse files
authored
Reset the conflicted files list in testpatch (#18139)
Although #18004 will seriously reduce the likelihood of finding conflicts in the first place - one bug was introduced whereby the conflicted files status was not being reset properly. This leads to conflicted PRs remaining conflicted when the conflict has been resolved. Signed-off-by: Andrew Thornton <[email protected]>
1 parent 7eb380b commit 431e482

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/pull/patch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ func checkConflicts(pr *models.PullRequest, gitRepo *git.Repository, tmpBasePath
235235
}()
236236

237237
numberOfConflicts := 0
238+
pr.ConflictedFiles = make([]string, 0, 5)
238239
conflict := false
239240

240241
for file := range unmerged {

0 commit comments

Comments
 (0)