mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 09:15:26 +01:00 
			
		
		
		
	Add Pagination Options for List Subcomands (#204)
Add Pagination Options for List subcomands Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/204 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
		| @@ -43,6 +43,8 @@ var CmdMilestonesList = cli.Command{ | ||||
| 			Usage:       "Filter by milestone state (all|open|closed)", | ||||
| 			DefaultText: "open", | ||||
| 		}, | ||||
| 		&PaginationPageFlag, | ||||
| 		&PaginationLimitFlag, | ||||
| 	}, AllDefaultFlags...), | ||||
| } | ||||
|  | ||||
| @@ -86,7 +88,8 @@ func runMilestonesList(ctx *cli.Context) error { | ||||
| 	} | ||||
|  | ||||
| 	milestones, _, err := login.Client().ListRepoMilestones(owner, repo, gitea.ListMilestoneOption{ | ||||
| 		State: state, | ||||
| 		ListOptions: getListOptions(ctx), | ||||
| 		State:       state, | ||||
| 	}) | ||||
|  | ||||
| 	if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 6543
					6543