From 24630e0c9b92bcd9fdeb07ce15c3dd2cfc459a52 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 23 Mar 2014 18:00:09 +0800 Subject: improved activity --- models/action.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'models') diff --git a/models/action.go b/models/action.go index 4f78deb3..ca2ff3cb 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 -- cgit v1.2.3