Skip to content

Commit

Permalink
Bug/denis codefresh/saas 6326 fail create trigger (#422)
Browse files Browse the repository at this point in the history
* SAAS-6326 Encode trigger event ID

* bump
  • Loading branch information
denis-codefresh authored Mar 18, 2020
1 parent 6eb076c commit 40d21ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/interface/cli/commands/trigger/create.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const command = new Command({
const { 'event-uri': event, pipeline } = argv;

const filters = prepareKeyValueFromCLIEnvOption(argv.filter);
await sdk.triggers.create({ event, pipeline }, { filters });
await sdk.triggers.create({ event: encodeURIComponent(event), pipeline }, { filters });
console.log(`Trigger: ${event} was successfully linked to the pipeline: ${pipeline}`);
},
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.43.12",
"version": "0.43.13",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 40d21ab

Please sign in to comment.