-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Open to Pull Request form directly on compare page #30217
base: main
Are you sure you want to change the base?
Conversation
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.
Finally.
I was waiting for this PR for too long
I'm willing to backport this nice enhancement to 1.22. |
It depends on whether the repository is archived/mirror and whether the compared are two branches. |
Many |
The |
Ready again. |
But sometimes, you just want to do a compare but not create a pull request? |
You always have the diff to compare at bottom. I see GitHub UI features the button on compare page as well, but I think under some circumstances the button is hidden and it opens directly to the form: I think we don't need such complications, we can make the form sufficiently compact and then the page will work for both purposes. |
But that will bothering. The previous design, there is only 1 line as a hint, but know whatever you want to create or not create a pull request, you will always see the creating pull request form. |
Maybe we just need a way to skip the button in certain situations. On GitHub, I can open Another potential difference with GitHub is that when the diff and/or commit count is small it only shows the diff, not the commit list. |
Checked how github does it:
Redirects to
So we just need to implement the |
When creating a PR on Gitea, there is this useless step where one has to click a button on the compare page. Removed it. Note, I'm not yet sure what the relation to
.Flash
here is.Instead, remove this button and show the form directly. This matches GitHub's behaviour as well.