forgejo/services/pull
zeripath 09f7d84f4c
Ensure rejected push to refs/pull/index/head fails nicely (#11724)
A pre-receive hook that rejects pushes to refs/pull/index/head
will cause a broken PR which causes an internal server error
whenever it is viewed. This PR handles prevents the internal server
error by handling non-existent pr heads and sends a flash error
informing the creator there was a problem.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-06-08 19:07:41 +01:00
..
check.go Only update merge_base in checker if not already merged (#10908) 2020-04-01 15:02:11 +03:00
check_test.go
commit_status.go
lfs.go
main_test.go
merge.go Prevent merge of outdated PRs on protected branches (#11012) 2020-04-16 22:00:36 -03:00
patch.go Generate Diff and Patch direct from Pull head (#10936) 2020-04-03 21:21:41 +08:00
pull.go Ensure rejected push to refs/pull/index/head fails nicely (#11724) 2020-06-08 19:07:41 +01:00
pull_test.go
review.go
temp_repo.go Prevent deadlock in pull_service.GetDiverging(pr) (#10905) 2020-04-01 20:03:08 +01:00
update.go Check Push permissions on IsUserAllowedToUpdate (#11448) 2020-05-16 20:48:30 -04:00