Skip to content

Commit 83b9fca

Browse files
add option to disable notification in sync feature (#357)
* add option to disable notification in sync feature * bump
1 parent 25ea8ef commit 83b9fca

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

lib/interface/cli/commands/team/synchronize.cmd.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ const command = new Command({
3333
alias: 'tk',
3434
required: false,
3535
})
36+
.option('disable-notifications', {
37+
describe: 'Github Personal Access Token that overrides the default one (Optional and only valid for Github)',
38+
alias: 'no-notify',
39+
required: false,
40+
type: Boolean,
41+
default: false
42+
})
3643
.example('codefresh synchronize teams [client-name] -t [client-type] -tk [accessToken]', 'Synchronize team with group');
3744
},
3845
handler: async (argv) => {
@@ -47,6 +54,7 @@ const command = new Command({
4754
name: argv['client-name'],
4855
type: argv['client-type'],
4956
access_token: argv['access-token'],
57+
disableNotifications: argv['disable-notifications']
5058
});
5159
} finally {
5260
spinner.stop();

openapi.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6802,6 +6802,15 @@
68026802
"schema": {
68036803
"type": "string"
68046804
}
6805+
},
6806+
{
6807+
"in": "query",
6808+
"name": "disableNotifications",
6809+
"schema": {
6810+
"type": "boolean"
6811+
},
6812+
"required": false,
6813+
"description": "Disable send notifications"
68056814
}
68066815
],
68076816
"summary": "Synchronize client with group",

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

0 commit comments

Comments
 (0)