-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Introduce pull request commit view files page #26197
Conversation
CI failure looks like a template linter's bug. |
It's not a bug. It should avoid using such code layout |
prInfo = PrepareViewPullInfo(ctx, issue) | ||
} | ||
|
||
if ctx.Written() { |
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.
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.
Yes. But it's still necessary because PrepareViewPullInfo
is invoked.
Yes, it's a linter bug, but I'd also argue we should not conditionally create opening tags, there are better ways. |
Actually no, this is not a linter bug in this case, you are actually outputting unbalanced tags, you need the same condition that is on the opening tag for a closing tag below. |
I will rewrite this since #25528 merged and there are some conflicts. |
This PR introduce a new page for view commit changes in a pull request. Before this PR, when click some commit in the commits list page of a pull request, it will jump to a commit view page. But now it will show in this pull request like GH did.
related to #25528
Before:
After:
This also avoids pull request commits have blank branches and tags listed.