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:
Alain Thiffault
2025-12-05 06:14:34 +00:00
committed by Lunny Xiao
parent f59430a42a
commit e961a8f01d
2 changed files with 12 additions and 1 deletions

View File

@@ -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