aboutsummaryrefslogtreecommitdiff
path: root/models/action.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-17 20:04:58 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-17 20:04:58 +0800
commita30e72323d1f8f6be7716a0548d99ef06807172b (patch)
treeea47ee0ed1836c47edd13267aefab1daf14fefe0 /models/action.go
parent914ce405af975a6bf65cedd279e1bf75ca1671d5 (diff)
parent5bc2a1a6f98ae42ab5c30299d26082ffae54b859 (diff)
merge
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/models/action.go b/models/action.go
index ceee9997..978e805c 100644
--- a/models/action.go
+++ b/models/action.go
@@ -44,6 +44,10 @@ func (a Action) GetRepoName() string {
return a.RepoName
}
+func (a Action) GetContent() string {
+ return a.Content
+}
+
// CommitRepoAction records action for commit repository.
func CommitRepoAction(userId int64, userName string,
repoId int64, repoName string, commits [][]string) error {