ActUserName string // Action user name.
RepoId int64
RepoName string
+ RefName string
Content string `xorm:"TEXT"`
Created time.Time `xorm:"created"`
}
// CommitRepoAction records action for commit repository.
func CommitRepoAction(userId int64, userName string,
- repoId int64, repoName string, commits [][]string) error {
+ repoId int64, repoName string, refName string, commits [][]string) error {
bs, err := json.Marshal(commits)
if err != nil {
return err
Content: string(bs),
RepoId: repoId,
RepoName: repoName,
+ RefName: refName,
})
return err
}
}
if err = models.CommitRepoAction(user.Id, user.Name,
- repo.Id, ref.BranchName(), commits); err != nil {
+ repo.Id, repoName, refname, commits); err != nil {
log.Error("runUpdate.models.CommitRepoAction: %v", err, commits)
} else {
//log.Info("refname", refname)