Skip to content

Commit

Permalink
documentation ...
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Apr 27, 2020
1 parent cd8b273 commit c2ae44c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion routers/api/v1/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func ListIssues(ctx *context.APIContext) {
// type: string
// - name: milestones
// in: query
// description: comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded
// description: comma separated list of milestone names or ids. It uses names and fall back to ids. Fetch only issues that have any of this milestones. Non existent milestones are discarded
// type: string
// - name: page
// in: query
Expand Down Expand Up @@ -259,6 +259,8 @@ func ListIssues(ctx *context.APIContext) {
var mileIDs []int64
if part := strings.Split(ctx.Query("milestones"), ","); len(part) > 0 {
for i := range part {
// uses names and fall back to ids
// non existent milestones are discarded
mile, err := models.GetMilestoneByRepoIDANDName(ctx.Repo.Repository.ID, part[i])
if err == nil {
mileIDs = append(mileIDs, mile.ID)
Expand Down

0 comments on commit c2ae44c

Please sign in to comment.