-
-
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
Fix issue link rendering in commit messages #2897
Conversation
b41fa49
to
2d11815
Compare
2d11815
to
824cf3b
Compare
@@ -252,28 +253,27 @@ func ReplaceLeft(s, old, new string) string { | |||
} | |||
|
|||
// RenderCommitMessage renders commit message with XSS-safe and special links. | |||
func RenderCommitMessage(full bool, msg, urlPrefix string, metas map[string]string) template.HTML { | |||
func RenderCommitMessage(msg, urlPrefix string, metas map[string]string) template.HTML { |
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.
I removed the full
parameter, because it was always set to false
.
Codecov Report
@@ Coverage Diff @@
## master #2897 +/- ##
=========================================
+ Coverage 26.85% 27% +0.15%
=========================================
Files 89 89
Lines 17607 17644 +37
=========================================
+ Hits 4728 4765 +37
Misses 12193 12193
Partials 686 686
Continue to review full report at Codecov.
|
@lunny fixed |
@ethantkoenig is it possible to add so that brackets that are around issue/pr number are not added to commit link? |
@lafriks Should be doable |
Like in @lunny screenshot in issue. It would look much better if brackets would not be part of any link |
@lafriks Done |
Nice, LGTM |
LGTM |
Fixes #2870.