diff options
Diffstat (limited to 'models')
-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 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 |