improved activity
This commit is contained in:
parent
d6619cfe15
commit
24630e0c9b
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue