1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 12:59:11 -05:00
forgejo/routers
norohind d74f74a025
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

(cherry picked from commit ed02d1fab85c9b8206c0af84dcfc3792e61609cf)
2024-03-20 08:46:30 +01:00
..
api Fix PR creation via api between branches of same repo with head field namespaced (#26986) 2024-03-20 08:46:30 +01:00
common Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
install Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
private Sync branches first (gitea#29714) 2024-03-18 17:39:34 +01:00
utils Improve user search display name (#29002) 2024-02-01 17:10:16 +00:00
web Fix incorrect menu/link on webhook edit page (#29709) 2024-03-20 08:46:29 +01:00
init.go Actions Artifacts v4 backend (#28965) 2024-03-06 12:10:45 +08:00