]> source.dussan.org Git - gitea.git/commit
Add transaction when creating pull request created dirty data (#26259)
authorLunny Xiao <xiaolunwen@gmail.com>
Thu, 10 Aug 2023 02:39:21 +0000 (10:39 +0800)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2023 02:39:21 +0000 (02:39 +0000)
commit36eb3c433ae384f21beec63eb648141fb9dba676
tree4f8ad47b15981b1f802de9695ec402f8b756cb62
parenta85a8628042c788ce2b372a29ca1cefab544f1ed
Add transaction when creating pull request created dirty data (#26259)

Fix #26129
Replace #26258

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