]> source.dussan.org Git - gitea.git/commit
Only check for conflicts/merging if the PR has not been merged in the interim (#10132...
author6543 <6543@obermui.de>
Mon, 10 Feb 2020 13:09:08 +0000 (14:09 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 13:09:08 +0000 (13:09 +0000)
commitc95d9603ea45ef985090014bde807fb47e3df931
treeee7590162f4c315b380160c01251cd537cd7ded2
parent9169b394586fb6dfe07925f21ebf69648b19f902
Only check for conflicts/merging if the PR has not been merged in the interim (#10132) (#10206)

* Only check for conflicts/merging if the PR has not been merged in the interim (#10132)

* Only check for merging if the PR has not been merged in the interim

* fixup! Only check for merging if the PR has not been merged in the interim

* Try to fix test failure

* Use PR2 not PR1 in tests as PR1 merges automatically

* return already merged error

* enforce locking

* move pullrequest checking to after merge

This might improve the chance that the race does not affect us but does not prevent it.

* Remove minor race with getting merge commit id

move check pr after merge

* Remove unnecessary prepareTestEnv - onGiteaRun does this for us

* Add information about when merging occuring

* More logging

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* re order

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
integrations/pull_merge_test.go
models/pull.go
services/pull/check.go
services/pull/check_test.go
services/pull/merge.go