summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-29 19:59:02 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-29 19:59:02 +0800
commitec1b801732b030648c060d26ce5a3ed8cf2e822c (patch)
treee6d884bcfa182022d0d69bbad7eae8852c2af03d /models/action.go
parent828282882066aa4e8bd8fb0c083c530607bc34bb (diff)
downloadgitea-ec1b801732b030648c060d26ce5a3ed8cf2e822c.tar.gz
gitea-ec1b801732b030648c060d26ce5a3ed8cf2e822c.zip
bug fixed
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go
index 894855784f..1e55df85e9 100644
--- a/models/action.go
+++ b/models/action.go
@@ -64,7 +64,7 @@ func (a Action) GetContent() string {
}
// CommitRepoAction adds new action for committing repository.
-func CommitRepoAction(userId int64, userName string,
+func CommitRepoAction(userId int64, userName, actEmail string,
repoId int64, repoName string, refName string, commit *base.PushCommits) error {
log.Trace("action.CommitRepoAction(start): %d/%s", userId, repoName)
@@ -74,7 +74,7 @@ func CommitRepoAction(userId int64, userName string,
return err
}
- if err = NotifyWatchers(&Action{ActUserId: userId, ActUserName: userName, ActEmail: "",
+ if err = NotifyWatchers(&Action{ActUserId: userId, ActUserName: userName, ActEmail: actEmail,
OpType: OP_COMMIT_REPO, Content: string(bs), RepoId: repoId, RepoName: repoName, RefName: refName}); err != nil {
log.Error("action.CommitRepoAction(notify watchers): %d/%s", userId, repoName)
return err