Handle deleted base branch in PR#10618
Merged
zeripath merged 3 commits intoMar 5, 2020
Merged
Conversation
Signed-off-by: Andrew Thornton <art27@cantab.net>
guillep2k
approved these changes
Mar 5, 2020
Member
guillep2k
left a comment
There was a problem hiding this comment.
This seems to work OK on all the pages I could test. I didn't test deleting the ref from refs/pulls/# and gc/prunning because I don't think that case it supposed to be covered by this PR. 👍
Contributor
Author
|
@guillep2k deleting the internal ref is most definitely not covered by this PR and probably should be an internal server error - it should not be deleted unless you actually delete the PR. |
6543
approved these changes
Mar 5, 2020
lafriks
approved these changes
Mar 5, 2020
Codecov Report
@@ Coverage Diff @@
## master #10618 +/- ##
==========================================
+ Coverage 43.69% 43.69% +<.01%
==========================================
Files 587 587
Lines 82174 82183 +9
==========================================
+ Hits 35905 35910 +5
- Misses 41819 41824 +5
+ Partials 4450 4449 -1
Continue to review full report at Codecov.
|
zeripath
added a commit
to zeripath/gitea
that referenced
this pull request
Mar 5, 2020
Signed-off-by: Andrew Thornton <art27@cantab.net>
lafriks
added a commit
that referenced
this pull request
Mar 5, 2020
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you delete the base branch of a PR, although the PR will be closed if you view the PR you will be presented with a 500. This PR will handle this case.
See for an example PR https://try.gitea.io/arandomer/anudderrepo/pulls/1
Signed-off-by: Andrew Thornton art27@cantab.net