Skip to content

Commit d301643

Browse files
Fix get builds by pipeline name
1 parent d4944bd commit d301643

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/interface/cli/commands/workflow/get.cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const command = new Command({
8282
if (!_.isEmpty(pipelines)) {
8383
const MatchPipelines = _.isArray(pipelines) ? pipelines : [pipelines];
8484
_.forEach(MatchPipelines, (currPipeline) => {
85-
pipelineIds.push(currPipeline.info.id);
85+
pipelineIds.push(currPipeline.info.metadata.id);
8686
});
8787
} else if (_.isEmpty(pipelineIds)) {
8888
throw new CFError('Cannot find any builds with these pipelines names');

lib/logic/api/workflow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const getWorkflows = async (options) => {
4646
page: options.page,
4747
status: options.status,
4848
trigger: options.trigger,
49-
service: options.pipelineIds,
49+
pipeline: options.pipelineIds,
5050
};
5151

5252
const RequestOptions = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.8.51",
3+
"version": "0.8.52",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)