Skip to content

Conversation

ethantkoenig
Copy link
Member

Fixes #2870.


// 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 {
Copy link
Member Author

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-io
Copy link

codecov-io commented Nov 12, 2017

Codecov Report

Merging #2897 into master will increase coverage by 0.15%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
modules/markup/html.go 51.43% <100%> (+5.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47f40cc...8d364c0. Read the comment docs.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 12, 2017
@lunny lunny added this to the 1.3.0 milestone Nov 12, 2017
@lunny lunny added the type/bug label Nov 12, 2017
@lunny
Copy link
Member

lunny commented Nov 12, 2017

image

@ethantkoenig
Copy link
Member Author

@lunny fixed

@lafriks
Copy link
Member

lafriks commented Nov 12, 2017

@ethantkoenig is it possible to add so that brackets that are around issue/pr number are not added to commit link?

@ethantkoenig
Copy link
Member Author

@lafriks Should be doable

@lafriks
Copy link
Member

lafriks commented Nov 12, 2017

Like in @lunny screenshot in issue. It would look much better if brackets would not be part of any link

@ethantkoenig
Copy link
Member Author

@lafriks Done
image

@lafriks
Copy link
Member

lafriks commented Nov 12, 2017

Nice, LGTM

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Nov 12, 2017
@lunny
Copy link
Member

lunny commented Nov 13, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 13, 2017
@lunny lunny merged commit 5481be0 into go-gitea:master Nov 13, 2017
@ethantkoenig ethantkoenig deleted the fix/commit_msg branch November 25, 2017 05:12
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue indexes in commit messages parser failed.
5 participants