Skip to content

Commit

Permalink
Send email notification to repo watchers when WIP PR is created
Browse files Browse the repository at this point in the history
  • Loading branch information
jpraet committed Feb 12, 2021
1 parent c87dd55 commit 1ae2a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/mailer/mail_issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func mailIssueCommentToParticipants(ctx *mailCommentContext, mentions []int64) e

// =========== Repo watchers ===========
// Make repo watchers last, since it's likely the list with the most users
if !(ctx.Issue.IsPull && ctx.Issue.PullRequest.IsWorkInProgress()) {
if !(ctx.Issue.IsPull && ctx.Issue.PullRequest.IsWorkInProgress() && ctx.ActionType != models.ActionCreatePullRequest) {
ids, err = models.GetRepoWatchersIDs(ctx.Issue.RepoID)
if err != nil {
return fmt.Errorf("GetRepoWatchersIDs(%d): %v", ctx.Issue.RepoID, err)
Expand Down

0 comments on commit 1ae2a39

Please sign in to comment.