You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CaiCandong c576b50441
Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785)
## Description 
Sometimes, we need to use an upstream mirror repository to update the
current development repository, but mirror repositories are prohibited
from PR. It should not appear in `merge to,` but it can appear in `pull
from.`
Fix #24585 #26193 #26781
Related #24183

Many thanks to @apnote  for assisting me in reproducing this bug!

## ScreenShot
---
### Before

<img
src="https://github.com/go-gitea/gitea/assets/50507092/3d76c376-1f54-45b9-80c9-6ba8319d6a9a"
width="400px">

<img
src="https://github.com/go-gitea/gitea/assets/50507092/fbfd9f7f-421f-4a2e-9a3e-f2958bbf3312"
width="400px">

### After

<img
src="https://github.com/go-gitea/gitea/assets/50507092/e6984524-4f61-4310-b795-4d8598bd8963"
width="400px">

<img
src="https://github.com/go-gitea/gitea/assets/50507092/04065b44-78d7-4721-bf31-0f1674150727"
width="400px">
11 months ago
..
blob_excerpt.tmpl Button and color enhancements (#24989) 1 year ago
box.tmpl Fix review bar misalignment (#26711) 11 months ago
comment_form.tmpl Don't autosize textarea in diff view (#26233) 12 months ago
comment_form_datahandler.tmpl Make sure fmt catches all templates (#20979) 2 years ago
comments.tmpl Use template context function for avatar rendering (#26385) 12 months ago
compare.tmpl Fix being unable to use a repo that prohibits accepting PRs as a PR source. (#26785) 11 months ago
conversation.tmpl Remove incorrect CSS helper classes (#26712) 11 months ago
csv_diff.tmpl Fix CSV diff for added/deleted files (#21189) 2 years ago
escape_title.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 2 years ago
image_diff.tmpl Improve Image Diff UI (#26696) 11 months ago
new_comment.tmpl Do not reload page after adding comments in Pull Request reviews (#13877) 4 years ago
new_review.tmpl Add commits dropdown in PR files view and allow commit by commit review (#25528) 12 months ago
options_dropdown.tmpl Show outdated comments in files changed tab (#24936) 1 year ago
section_code.tmpl Add template linting via djlint (#25212) 1 year ago
section_split.tmpl Make `add line comment` buttons focusable (#25894) 1 year ago
section_unified.tmpl Make `add line comment` buttons focusable (#25894) 1 year ago
stats.tmpl Group template helper functions, remove `Printf`, improve template error messages (#23982) 1 year ago
whitespace_dropdown.tmpl Show outdated comments in files changed tab (#24936) 1 year ago