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
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:
Done @esfraner .. See https://github.com/go-gitea/gitea/pull/7131
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 GitHubSee https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository and https://github.com/go-gitea/gitea/pull/5051#issuecomment-441560092