Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 01ce6fd

Browse files
author
Noah Hanjun Lee
authored
Fix to skip self-review (#202)
1 parent 5032049 commit 01ce6fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/interactor/deployment.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ func (i *Interactor) Deploy(ctx context.Context, u *ent.User, r *ent.Repo, d *en
5252
}
5353

5454
for _, rvr := range env.Review.Reviewers {
55+
if rvr == u.Login {
56+
continue
57+
}
58+
5559
i.log.Debug(fmt.Sprintf("Request a review to %s.", rvr))
5660
if _, err := i.requestReviewByLogin(ctx, d, rvr); err != nil {
5761
i.log.Error("Failed to request the review.", zap.Error(err))

0 commit comments

Comments
 (0)