diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-23 18:00:09 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-23 18:00:09 +0800 |
commit | 24630e0c9b92bcd9fdeb07ce15c3dd2cfc459a52 (patch) | |
tree | ffbd0348bee393f5274f5b41ceb7acec5e74dd6c /models/action.go | |
parent | d6619cfe15885b7004585bf2b96933a7a3e51f39 (diff) | |
download | gitea-24630e0c9b92bcd9fdeb07ce15c3dd2cfc459a52.tar.gz gitea-24630e0c9b92bcd9fdeb07ce15c3dd2cfc459a52.zip |
improved activity
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index 4f78deb30e..ca2ff3cbf1 100644 --- a/models/action.go +++ b/models/action.go @@ -51,9 +51,14 @@ func (a Action) GetContent() string { return a.Content } +type PushCommits struct { + Len int + Commits [][]string +} + // CommitRepoAction records action for commit repository. func CommitRepoAction(userId int64, userName string, - repoId int64, repoName string, refName string, commits [][]string) error { + repoId int64, repoName string, refName string, commits *PushCommits) error { bs, err := json.Marshal(commits) if err != nil { return err |