Skip to content

Commit a7a31c1

Browse files
committed
Ignore force pushes for changed files
1 parent 6a97ab0 commit a7a31c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/gitdiff/gitdiff.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,7 @@ func SyncUserSpecificDiff(ctx context.Context, userID int64, pull *issues_model.
13561356
// But as that does not work for all potential errors, we simply mark all files as unchanged and drop the error which always works, even if not as good as possible
13571357
if err != nil {
13581358
log.Error("Could not get changed files between %s and %s for pull request %d in repo with path %s. Assuming no changes. Error: %w", review.CommitSHA, latestCommit, pull.Index, gitRepo.Path, err)
1359+
err = nil
13591360
}
13601361

13611362
filesChangedSinceLastDiff := make(map[string]pull_model.ViewedState)

0 commit comments

Comments
 (0)