Skip to content

Commit 1fbdd93

Browse files
authored
Fix double PR notification from API (#10482) (#10486)
Signed-off-by: jolheiser <[email protected]>
1 parent e9061a5 commit 1fbdd93

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

routers/api/v1/repo/pull.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"code.gitea.io/gitea/modules/context"
1616
"code.gitea.io/gitea/modules/git"
1717
"code.gitea.io/gitea/modules/log"
18-
"code.gitea.io/gitea/modules/notification"
1918
api "code.gitea.io/gitea/modules/structs"
2019
"code.gitea.io/gitea/modules/timeutil"
2120
issue_service "code.gitea.io/gitea/services/issue"
@@ -316,8 +315,6 @@ func CreatePullRequest(ctx *context.APIContext, form api.CreatePullRequestOption
316315
return
317316
}
318317

319-
notification.NotifyNewPullRequest(pr)
320-
321318
log.Trace("Pull request created: %d/%d", repo.ID, prIssue.ID)
322319
ctx.JSON(http.StatusCreated, pr.APIFormat())
323320
}

0 commit comments

Comments
 (0)