mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 21:03:22 +00:00
Add filter to list repository pipelines API (#4416)
This commit is contained in:
@@ -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[]>;
|
||||
|
Reference in New Issue
Block a user