-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PR creation via api between branches of same repo with head field namespaced (#26986) #29857
Conversation
… namespaced (go-gitea#26986) Fix go-gitea#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: go-gitea#20175 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test failure seems related.... maybe an outdated dependency version?
I think it's because in 1.21 (where my PR is being backported, as far as I understand) there is no support |
Backport #26986 by @norohind
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: #20175 (comment)