diff options
author | Justin Nuß <nuss.justin@gmail.com> | 2014-07-24 19:15:35 +0200 |
---|---|---|
committer | Justin Nuß <nuss.justin@gmail.com> | 2014-07-24 19:15:35 +0200 |
commit | 620c0ef297ceca370f8e2946a72a2a1c40c16347 (patch) | |
tree | 8f9d0911db7d2920b6cf6d0de18ad61b1042b543 /models/action.go | |
parent | cbcd08aa17e95a72dcb294da836aa7f2b966d5c0 (diff) | |
parent | c20f5dc2ea1b27e80c28e00831278c7451ba6cce (diff) |
Merge branch 'dev' of https://github.com/gogits/Gogs into trello/244
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go index 82d65de3..0342abf5 100644 --- a/models/action.go +++ b/models/action.go @@ -127,7 +127,7 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com url := fmt.Sprintf("/%s/%s/commit/%s", repoUserName, repoName, c.Sha1) message := fmt.Sprintf(`<a href="%s">%s</a>`, url, c.Message) - if err = CreateComment(userId, issue.RepoId, issue.Id, 0, 0, COMMIT, message); err != nil { + if _, err = CreateComment(userId, issue.RepoId, issue.Id, 0, 0, COMMIT, message, nil); err != nil { return err } @@ -147,7 +147,7 @@ func updateIssuesCommit(userId, repoId int64, repoUserName, repoName string, com } // If commit happened in the referenced repository, it means the issue can be closed. - if err = CreateComment(userId, repoId, issue.Id, 0, 0, CLOSE, ""); err != nil { + if _, err = CreateComment(userId, repoId, issue.Id, 0, 0, CLOSE, "", nil); err != nil { return err } } |