Fix pipeline manual trigger on web (#1307)

Fixed broken `Run pipeline` button on repo

Co-authored-by: Divya Jain <dvjn.dev+git@gmail.com>
This commit is contained in:
Divya Jain 2022-10-21 21:09:19 +05:30 committed by GitHub
parent 76ecb9cd92
commit dcedddb2f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ export default class WoodpeckerClient extends ApiClient {
}
createPipeline(owner: string, repo: string, options: BuildOptions): Promise<Pipeline> {
return this._post(`/api/repos/${owner}/${repo}/pipeline`, options) as Promise<Pipeline>;
return this._post(`/api/repos/${owner}/${repo}/pipelines`, options) as Promise<Pipeline>;
}
getPipelineList(owner: string, repo: string, opts?: Record<string, string | number | boolean>): Promise<Pipeline[]> {