Skip to content

Commit 47a6bbd

Browse files
committed
fix
1 parent c397f49 commit 47a6bbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/pull/update.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ func Update(ctx context.Context, pr *issues_model.PullRequest, doer *user_model.
3939
return fmt.Errorf("unable to load BaseRepo for PR[%d] during update-by-merge: %w", pr.ID, err)
4040
}
4141

42-
if pr.ID > 0 { // only a real PR needs to check this FIXME: why it needs this check?
42+
// TODO: FakePR: if the PR is a fake PR (for example: from Merge Upstream), then no need to check diverging
43+
if pr.ID > 0 {
4344
diffCount, err := GetDiverging(ctx, pr)
4445
if err != nil {
4546
return err

0 commit comments

Comments
 (0)