Skip to content

Commit 40d21ab

Browse files
Bug/denis codefresh/saas 6326 fail create trigger (#422)
* SAAS-6326 Encode trigger event ID * bump
1 parent 6eb076c commit 40d21ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/interface/cli/commands/trigger/create.cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const command = new Command({
3535
const { 'event-uri': event, pipeline } = argv;
3636

3737
const filters = prepareKeyValueFromCLIEnvOption(argv.filter);
38-
await sdk.triggers.create({ event, pipeline }, { filters });
38+
await sdk.triggers.create({ event: encodeURIComponent(event), pipeline }, { filters });
3939
console.log(`Trigger: ${event} was successfully linked to the pipeline: ${pipeline}`);
4040
},
4141
});

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.43.12",
3+
"version": "0.43.13",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)