From 1eb078d0a8c5424de9512d810ab2fbf21f59ff78 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 23 Mar 2014 06:27:01 -0400 Subject: Fix action --- models/action.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'models/action.go') diff --git a/models/action.go b/models/action.go index ca2ff3cb..11749293 100644 --- a/models/action.go +++ b/models/action.go @@ -8,6 +8,7 @@ import ( "encoding/json" "time" + "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/log" ) @@ -47,18 +48,17 @@ func (a Action) GetRepoName() string { return a.RepoName } -func (a Action) GetContent() string { - return a.Content +func (a Action) GetBranch() string { + return a.RefName } -type PushCommits struct { - Len int - Commits [][]string +func (a Action) GetContent() string { + return a.Content } // CommitRepoAction records action for commit repository. func CommitRepoAction(userId int64, userName string, - repoId int64, repoName string, refName string, commits *PushCommits) error { + repoId int64, repoName string, refName string, commits *base.PushCommits) error { bs, err := json.Marshal(commits) if err != nil { return err -- cgit v1.2.3