Skip to content

Commit 51d6f38

Browse files
fix flaky mssql test
1 parent 25c4eb1 commit 51d6f38

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

services/issue/comments.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,13 @@ func LoadCommentPushCommits(ctx context.Context, c *issues_model.Comment) (err e
162162
return err
163163
}
164164

165+
if err := c.LoadIssue(ctx); err != nil {
166+
return err
167+
}
168+
if err := c.Issue.LoadRepo(ctx); err != nil {
169+
return err
170+
}
171+
165172
c.IsForcePush = data.IsForcePush
166173

167174
if c.IsForcePush {

0 commit comments

Comments
 (0)