Skip to content
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

Can't create PR via Gitea UI on forked repository #8576

Closed
1 of 7 tasks
kklocek opened this issue Oct 18, 2019 · 6 comments · Fixed by #8670
Closed
1 of 7 tasks

Can't create PR via Gitea UI on forked repository #8576

kklocek opened this issue Oct 18, 2019 · 6 comments · Fixed by #8670
Labels
type/enhancement An improvement of existing functionality

Comments

@kklocek
Copy link

kklocek commented Oct 18, 2019

  • Gitea version (or commit ref): 1.9.3
  • Git version: 2.18.0.windows.1
  • Operating system: Windows 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: Not relevant

Description

I have repository A and B.
B is a fork of repository A.
When on B repository page I clicked "pull request" I am redirected to A repository page, where I can merge my branch into repository A, but I just want to merge my branch into repository B.
It works when I put Pull Request URL by hand.

Screenshots

gitea

@zeripath
Copy link
Contributor

So if this is urgent, it is possible to create a pr you may just have to do it manually. The URL would be:

/Owner/Reponame/compare/base-branch...Username:head-branch

The UI though doesn't currently expose this

@lunny lunny added the type/enhancement An improvement of existing functionality label Oct 23, 2019
@kklocek
Copy link
Author

kklocek commented Oct 23, 2019

So if this is urgent, it is possible to create a pr you may just have to do it manually. The URL would be:

/Owner/Reponame/compare/base-branch...Username:head-branch

The UI though doesn't currently expose this

Thank you for that, I make PR manually, but I think it's bug all in all in UI.

@zeripath
Copy link
Contributor

Agreed we need to improve it

@blueworrybear
Copy link
Contributor

@zeripath @lunny @kklocek

Hi, I try to fix this issue by redirecting to /headUser/currentRepo/compare instead of /baseRepoUser/currentRepo/compare when user click create pull request.

The dropdown menu now will show branches from both current repository and base repository.

However, I am not sure whether to merge this update to v1.9 branch or master. Need some suggestion... 🤔

demo

@lunny
Copy link
Member

lunny commented Oct 24, 2019

@blueworrybear Please send a PR to master at first.

blueworrybear added a commit to blueworrybear/gitea that referenced this issue Oct 24, 2019
lunny pushed a commit that referenced this issue Oct 30, 2019
* 'update'

* Send push tag event when release created

* send tag create event while release created in UI

* update to go v1.13

* fix gofmt error

* fix #8576 create pull request on current repository by default
@kklocek
Copy link
Author

kklocek commented Oct 31, 2019

Thank you again Gitea team!

guillep2k pushed a commit to guillep2k/gitea that referenced this issue Nov 23, 2019
* 'update'

* Send push tag event when release created

* send tag create event while release created in UI

* update to go v1.13

* fix gofmt error

* fix go-gitea#8576 create pull request on current repository by default
sapk pushed a commit that referenced this issue Nov 24, 2019
* 'update'

* Send push tag event when release created

* send tag create event while release created in UI

* update to go v1.13

* fix gofmt error

* fix #8576 create pull request on current repository by default
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants