Gitea: [API] Add params to milestone API with order

Created on 20 Mar 2019  路  6Comments  路  Source: go-gitea/gitea

Current milestone API return both closed and open milestones, /repos/{owner}/{repo}/milestones.

It would be useful if it accept params to filter close and open milestones easily with order will be plus.
Open:
/repos/{owner}/{repo}/milestones?status=open&order=desc

Closed:
/repos/{owner}/{repo}/milestones?status=close&order=desc

kinapi kinenhancement revieweconfirmed

Most helpful comment

@mmarif4u I just checked and that endpoint returns only opened milestones since https://github.com/go-gitea/gitea/pull/5051 .

@esfraner I will make a PR to add the state params to the API like that of GitHub

See https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository and https://github.com/go-gitea/gitea/pull/5051#issuecomment-441560092

All 6 comments

Is it currently possible to get closed milestones by using API? I have tried with ?state=closed, and
?status=closed but without luck :cry:

I am using latest from master.

Don鈥檛 think that鈥檚 possible yet as no one has worked on this

Don鈥檛 think that鈥檚 possible yet as no one has worked on this

Thanks for your fast reply :smile:

@mmarif4u I just checked and that endpoint returns only opened milestones since https://github.com/go-gitea/gitea/pull/5051 .

@esfraner I will make a PR to add the state params to the API like that of GitHub

See https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository and https://github.com/go-gitea/gitea/pull/5051#issuecomment-441560092

Thank you so much for everything :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kifirkin picture kifirkin  路  3Comments

jakimfett picture jakimfett  路  3Comments

cookiengineer picture cookiengineer  路  3Comments

internalfx picture internalfx  路  3Comments

tuxfanou picture tuxfanou  路  3Comments