diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-16 22:32:50 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-16 22:32:50 +0800 |
commit | f824d6a4b11d4d8ddc82d54c5183934b465afbd3 (patch) | |
tree | 3586b1746fd2097834685e0ee589de7b1a0c10b0 /models/action.go | |
parent | f620f23c35f76a97f945f210638d4be8920e189e (diff) | |
parent | 9557cfc6534d2a215f6c6da73468aea1e3edd61f (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/action.go b/models/action.go index 93c1e276..9e075646 100644 --- a/models/action.go +++ b/models/action.go @@ -43,6 +43,7 @@ func (a Action) GetRepoName() string { return a.RepoName } +// CommitRepoAction records action for commit repository. func CommitRepoAction(userId int64, userName string, repoId int64, repoName string, msg string) error { _, err := orm.InsertOne(&Action{ @@ -57,8 +58,7 @@ func CommitRepoAction(userId int64, userName string, return err } -// NewRepoAction inserts action for create repository. - +// NewRepoAction records action for create repository. func NewRepoAction(user *User, repo *Repository) error { _, err := orm.InsertOne(&Action{ UserId: user.Id, |