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.
gitea/routers/api/v1/repo
norohind ed02d1fab8
Fix PR creation via api between branches of same repo with head field namespaced (#26986)
Fix #20175

Current implementation of API does not allow creating pull requests
between branches of the same
repo when you specify *namespace* (owner of the repo) in `head` field in
http request body.

--- 

Although GitHub implementation of API allows performing such action and
since Gitea targeting
compatibility with GitHub API I see it as an appropriate change.

I'm proposing a fix to the described problem and test case which covers
this logic.

My use-case just in case:
https://github.com/go-gitea/gitea/issues/20175#issuecomment-1711283022
11 months ago
..
action.go Move context from modules to services (#29440) 12 months ago
avatar.go Move context from modules to services (#29440) 12 months ago
blob.go Move context from modules to services (#29440) 12 months ago
branch.go Move context from modules to services (#29440) 12 months ago
collaborators.go Add user blocking (#29028) 11 months ago
commits.go Move context from modules to services (#29440) 12 months ago
file.go Fix missed return (#29450) 11 months ago
fork.go Add user blocking (#29028) 11 months ago
git_hook.go Move context from modules to services (#29440) 12 months ago
git_ref.go Move context from modules to services (#29440) 12 months ago
hook.go Move context from modules to services (#29440) 12 months ago
hook_test.go Move context from modules to services (#29440) 12 months ago
issue.go Refactor to use optional.Option for issue index search option (#29739) 11 months ago
issue_attachment.go Move context from modules to services (#29440) 12 months ago
issue_comment.go Do some performance optimize for issues list and view issue/pull (#29515) 11 months ago
issue_comment_attachment.go Add user blocking (#29028) 11 months ago
issue_dependency.go Move context from modules to services (#29440) 12 months ago
issue_label.go Move context from modules to services (#29440) 12 months ago
issue_pin.go Move context from modules to services (#29440) 12 months ago
issue_reaction.go Add user blocking (#29028) 11 months ago
issue_stopwatch.go Move context from modules to services (#29440) 12 months ago
issue_subscription.go Move context from modules to services (#29440) 12 months ago
issue_tracked_time.go Move context from modules to services (#29440) 12 months ago
key.go Move context from modules to services (#29440) 12 months ago
label.go Move context from modules to services (#29440) 12 months ago
language.go Move context from modules to services (#29440) 12 months ago
main_test.go make writing main test easier (#27270) 1 year ago
migrate.go Move context from modules to services (#29440) 12 months ago
milestone.go remove util.OptionalBool and related functions (#29513) 11 months ago
mirror.go Move context from modules to services (#29440) 12 months ago
notes.go Move context from modules to services (#29440) 12 months ago
patch.go Move context from modules to services (#29440) 12 months ago
pull.go Fix PR creation via api between branches of same repo with head field namespaced (#26986) 11 months ago
pull_review.go remove repetitive words (#29695) 11 months ago
release.go Fix 500 when pushing release to an empty repo (#29554) 11 months ago
release_attachment.go Add support for API blob upload of release attachments (#29507) 11 months ago
release_tags.go Move context from modules to services (#29440) 12 months ago
repo.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 11 months ago
repo_test.go Move context from modules to services (#29440) 12 months ago
runners.go Move context from modules to services (#29440) 12 months ago
star.go Move context from modules to services (#29440) 12 months ago
status.go Cache repository default branch commit status to reduce query on commit status table (#29444) 11 months ago
subscriber.go Move context from modules to services (#29440) 12 months ago
tag.go Move context from modules to services (#29440) 12 months ago
teams.go Move context from modules to services (#29440) 12 months ago
topic.go Move context from modules to services (#29440) 12 months ago
transfer.go Add user blocking (#29028) 11 months ago
tree.go Move context from modules to services (#29440) 12 months ago
wiki.go Move context from modules to services (#29440) 12 months ago