]> source.dussan.org Git - gitea.git/commit
Add transaction when creating pull request created dirty data (#26259) (#26437)
authorLunny Xiao <xiaolunwen@gmail.com>
Fri, 11 Aug 2023 05:27:23 +0000 (13:27 +0800)
committerGitHub <noreply@github.com>
Fri, 11 Aug 2023 05:27:23 +0000 (05:27 +0000)
commit368e9e0f1bf1094aad881336c698f540c047d9ac
treeb65c37ad8c941cbf1ae70d57af81e49c5d557653
parentd6cf261be860e8022ccbad5585fc3508e840d409
Add transaction when creating pull request created dirty data (#26259) (#26437)

Backport #26259

This PR will introduce a transaction on creating pull request so that if
some step failed, it will rollback totally. And there will be no dirty
pull request exist.

Co-authored-by: Giteabot <teabot@gitea.io>
models/issues/pull.go
models/issues/pull_test.go
models/issues/review.go
routers/web/repo/issue.go
services/issue/assignee.go
services/issue/issue.go
services/pull/patch.go
services/pull/pull.go