mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-29 21:59:13 +01:00
make sure milestone listing is consistent across board (#4987)
This commit is contained in:
parent
31d5488059
commit
e6d54d511d
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ func (milestones MilestoneList) getMilestoneIDs() []int64 {
|
||||||
// GetMilestonesByRepoID returns all milestones of a repository.
|
// GetMilestonesByRepoID returns all milestones of a repository.
|
||||||
func GetMilestonesByRepoID(repoID int64) (MilestoneList, error) {
|
func GetMilestonesByRepoID(repoID int64) (MilestoneList, error) {
|
||||||
miles := make([]*Milestone, 0, 10)
|
miles := make([]*Milestone, 0, 10)
|
||||||
return miles, x.Where("repo_id = ?", repoID).Find(&miles)
|
return miles, x.Where("repo_id = ?", repoID).Asc("deadline_unix").Find(&miles)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetMilestones returns a list of milestones of given repository and status.
|
// GetMilestones returns a list of milestones of given repository and status.
|
||||||
|
|
Loading…
Reference in a new issue