Skip to content

Commit 406a049

Browse files
lunnydelvh
andauthored
Update models/issues/pull.go
Co-authored-by: delvh <dev.lh@web.de>
1 parent 8dbc8e9 commit 406a049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ func (pr *PullRequest) SetMerged(ctx context.Context) (bool, error) {
498498

499499
// NewPullRequest creates new pull request with labels for repository.
500500
func NewPullRequest(outerCtx context.Context, repo *repo_model.Repository, issue *Issue, labelIDs []int64, uuids []string, pr *PullRequest) (err error) {
501-
ctx, committer, err := db.TxContext(db.DefaultContext)
501+
ctx, committer, err := db.TxContext(outerCtx)
502502
if err != nil {
503503
return err
504504
}

0 commit comments

Comments
 (0)