Skip to content

Commit c213720

Browse files
author
Oleg Sucharevich
authored
Notification (#199)
* rename report notifications to enable notification * promote version
1 parent fcf3703 commit c213720

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

lib/interface/cli/commands/pipeline/run.cmd.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ const run = new Command({
3636
alias: 'nc',
3737
default: false,
3838
})
39+
.option('enable-notifications', {
40+
describe: 'Report notifications about pipeline execution',
41+
alias: 'en',
42+
default: false,
43+
})
3944
.option('reset-volume', {
4045
describe: 'Reset pipeline cached volume',
4146
alias: 'rv',
@@ -74,6 +79,7 @@ const run = new Command({
7479
const branch = argv.branch;
7580
const sha = argv.sha;
7681
const noCache = argv['no-cache'];
82+
const enableNotifications = argv['enable-notifications'];
7783
const resetVolume = argv['reset-volume'];
7884
const variablesFromFile = argv['var-file'];
7985
const contexts = argv['context'];
@@ -94,6 +100,7 @@ const run = new Command({
94100
resetVolume,
95101
branch,
96102
sha,
103+
enableNotifications,
97104
},
98105
};
99106

lib/logic/api/pipeline.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ const runPipelineByName = async (name, data) => {
121121
body.options.noCache = data.noCache;
122122
}
123123

124+
if (data.enableNotifications) {
125+
body.options.enableNotifications = data.enableNotifications;
126+
}
127+
124128
if (data.resetVolume) {
125129
body.options.resetVolume = data.resetVolume;
126130
}

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

0 commit comments

Comments
 (0)