mirror of
https://gitea.com/gitea/tea.git
synced 2025-12-12 17:32:09 +01:00
fix: expose pagination flags for webhooks list command (#852)
The command uses flags.GetListOptions() internally but didn't expose --page and --limit flags to users, making pagination inaccessible. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/gitea/tea/pulls/852 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Alain Thiffault <athiffau@effectivemomentum.com> Co-committed-by: Alain Thiffault <athiffau@effectivemomentum.com>
This commit is contained in:
committed by
Lunny Xiao
parent
f59430a42a
commit
e961a8f01d
@@ -22,7 +22,10 @@ var CmdWebhooksList = cli.Command{
|
||||
Usage: "List webhooks",
|
||||
Description: "List webhooks in repository, organization, or globally",
|
||||
Action: RunWebhooksList,
|
||||
Flags: flags.AllDefaultFlags,
|
||||
Flags: append([]cli.Flag{
|
||||
&flags.PaginationPageFlag,
|
||||
&flags.PaginationLimitFlag,
|
||||
}, flags.AllDefaultFlags...),
|
||||
}
|
||||
|
||||
// RunWebhooksList list webhooks
|
||||
|
||||
Reference in New Issue
Block a user