1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-03 08:55:20 +02:00

Added issue link rendering in commit messages

This commit is contained in:
dennis-smurf 2014-12-05 11:02:52 +01:00
parent e577f2fff3
commit 528c075ad6
5 changed files with 26 additions and 6 deletions

View file

@ -199,6 +199,7 @@ func Home(ctx *middleware.Context) {
}
lastCommit := ctx.Repo.Commit
lastCommit.CommitMessage = string(base.RenderissueIndexPattern([]byte(lastCommit.CommitMessage), ctx.Repo.RepoLink))
if len(treePath) > 0 {
c, err := ctx.Repo.Commit.GetCommitOfRelPath(treePath)
if err != nil {