Add filter to list repository pipelines API (#4416)

This commit is contained in:
6543
2024-11-28 22:33:52 +01:00
committed by GitHub
parent 9fedc88a9c
commit 52fb493495
7 changed files with 95 additions and 15 deletions

View File

@@ -105,7 +105,7 @@ export default class WoodpeckerClient extends ApiClient {
async getPipelineList(
repoId: number,
opts?: PaginationOptions & { before?: string; after?: string },
opts?: PaginationOptions & { before?: string; after?: string; ref?: string; branch?: string; events?: string },
): Promise<Pipeline[]> {
const query = encodeQueryString(opts);
return this._get(`/api/repos/${repoId}/pipelines?${query}`) as Promise<Pipeline[]>;