Change commit ref comments to use a more parse-able form of content

This commit is contained in:
Keith Rutkowski 2018-04-02 10:48:14 -04:00
parent 96dd2686b1
commit b216bcf335

View File

@ -562,7 +562,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit, com
} }
if (mask & KeywordsFoundReference) == KeywordsFoundReference { if (mask & KeywordsFoundReference) == KeywordsFoundReference {
message := fmt.Sprintf(`<a href="%s/commit/%s">%s</a>`, repo.Link(), c.Sha1, c.Message) message := fmt.Sprintf("%d %s", repo.ID, c.Sha1)
if err = CreateCommitRefComment(doer, repo, issue, message, c.Sha1); err != nil { if err = CreateCommitRefComment(doer, repo, issue, message, c.Sha1); err != nil {
return err return err
} }