diff options
author | Unknwon <u@gogs.io> | 2015-08-05 11:18:24 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-05 11:18:24 +0800 |
commit | ce4dcf1e83d19ac0eb54ff059a52fca7c94308f8 (patch) | |
tree | 6b3378ab1a478c6f47dfce042dbf2bef478aec9c /models | |
parent | 9311a9858ae4dd10450370da8a93c37c1dad798b (diff) | |
download | gitea-ce4dcf1e83d19ac0eb54ff059a52fca7c94308f8.tar.gz gitea-ce4dcf1e83d19ac0eb54ff059a52fca7c94308f8.zip |
fix naming
Diffstat (limited to 'models')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go index 4c18efe877..cf62134b59 100644 --- a/models/issue.go +++ b/models/issue.go @@ -704,8 +704,8 @@ func GetMilestoneByIndex(repoId, idx int64) (*Milestone, error) { return m, nil } -// Milestones returns a list of milestones of given repository and status. -func Milestones(repoID int64, page int, isClosed bool) ([]*Milestone, error) { +// GetMilestones returns a list of milestones of given repository and status. +func GetMilestones(repoID int64, page int, isClosed bool) ([]*Milestone, error) { miles := make([]*Milestone, 0, setting.IssuePagingNum) sess := x.Where("repo_id=? AND is_closed=?", repoID, isClosed) if page > 0 { |