Skip to content

Commit 1ae2a39

Browse files
committed
Send email notification to repo watchers when WIP PR is created
1 parent c87dd55 commit 1ae2a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/mailer/mail_issue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func mailIssueCommentToParticipants(ctx *mailCommentContext, mentions []int64) e
6969

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

0 commit comments

Comments
 (0)