-
-
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
Don't post process commit summary in templates #6842
Don't post process commit summary in templates #6842
Conversation
Don't run summary through render/post process to avoid it generating links and breaking certain views where the summary is already expected to be a link to the commit. For consistancy, disable processing of summary in all locations. Fixes go-gitea#6809
Codecov Report
@@ Coverage Diff @@
## master #6842 +/- ##
=========================================
Coverage ? 41.14%
=========================================
Files ? 425
Lines ? 58484
Branches ? 0
=========================================
Hits ? 24061
Misses ? 31238
Partials ? 3185 Continue to review full report at Codecov.
|
On second thought, the title is often the only place a pull request number will exists so do process it on the individual diff page. This fixes the list view and still gives easy access to the PR link
Also up for feedback if keeping certain auto generated links in the summary title is something that is a very desired feature. |
As @lunny says in the underlying issue, this should probably be backported. |
Backport #6842 credit to @mrsdizzie
Don't run summary through render/post process on certain list views where it is already expected to be a link to the individual commit. This avoids inconsistent UI in some cases.
Fixes #6809