diff options
-rw-r--r-- | gogs.go | 2 | ||||
-rw-r--r-- | models/action.go | 7 | ||||
-rw-r--r-- | templates/.VERSION | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 1 |
4 files changed, 8 insertions, 4 deletions
@@ -16,7 +16,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.9.165.0221 / 0.10 RC" +const APP_VER = "0.9.165.0222 / 0.10 RC" func init() { setting.AppVer = APP_VER diff --git a/models/action.go b/models/action.go index a88968d3..0c6637a0 100644 --- a/models/action.go +++ b/models/action.go @@ -335,7 +335,12 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit) err } refMarked[issue.ID] = true - message := fmt.Sprintf(`<a href="%s/commit/%s">%s</a>`, repo.Link(), c.Sha1, c.Message) + msgLines := strings.Split(c.Message, "\n") + shortMsg := msgLines[0] + if len(msgLines) > 2 { + shortMsg += "..." + } + message := fmt.Sprintf(`<a href="%s/commit/%s">%s</a>`, repo.Link(), c.Sha1, shortMsg) if err = CreateRefComment(doer, repo, issue, message, c.Sha1); err != nil { return err } diff --git a/templates/.VERSION b/templates/.VERSION index f3c32f84..41dd8d9d 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.9.165.0221 / 0.10 RC
\ No newline at end of file +0.9.165.0222 / 0.10 RC
\ No newline at end of file diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 3296bc09..1b54718b 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -138,7 +138,6 @@ <img src="{{.Poster.RelAvatarLink}}"> </a> <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a> {{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}}</span> - <div class="detail"> <span class="octicon octicon-git-commit"></span> <span class="text grey">{{.Content | Str2html}}</span> |