1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-25 02:26:09 +02:00
gitea/routers/api/v1
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
2024-03-17 11:56:49 +08:00
..
activitypub Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
admin Add a warning for disallowed email domains (#29658) 2024-03-11 06:07:36 +00:00
misc Fix wrong test usage of `AppSubURL` (#29459) 2024-02-29 03:39:24 +00:00
notify Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
org Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-02 16:42:31 +01:00
repo Fix PR creation via api between branches of same repo with head field namespaced (#26986) 2024-03-17 11:56:49 +08:00
settings Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
shared Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
swagger Fix lint-swagger warning (#29787) 2024-03-14 04:59:52 +00:00
user Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
utils Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
api.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00