@@ -27,7 +27,7 @@ export default class Teams extends SfdxCommand {
27
27
public static description = messages . getMessage ( 'commandDescription' ) ;
28
28
29
29
public static examples = [
30
- `$ sfdx notify:teams -u https://outlook.office.com/webhook/WEBHOOK_URL -e UAT -b $BITBUCKET_BRANCH
30
+ `$ sfdx notify:teams --from 5.0 --to HEAD - u https://outlook.office.com/webhook/WEBHOOK_URL -e UAT -b $BITBUCKET_BRANCH
31
31
Notify deployment status on Microsoft Teams... Done!
32
32
`
33
33
] ;
@@ -37,7 +37,9 @@ export default class Teams extends SfdxCommand {
37
37
protected static flagsConfig = {
38
38
url : flags . string ( { char : 'u' , description : messages . getMessage ( 'urlFlagDescription' ) } ) ,
39
39
env : flags . string ( { char : 'e' , description : messages . getMessage ( 'envFlagDescription' ) } ) ,
40
- branch : flags . string ( { char : 'b' , description : messages . getMessage ( 'branchFlagDescription' ) } )
40
+ branch : flags . string ( { char : 'b' , description : messages . getMessage ( 'branchFlagDescription' ) } ) ,
41
+ from : flags . string ( { char : 'f' , description : messages . getMessage ( 'fromFlagDescription' ) } ) ,
42
+ to : flags . string ( { char : 't' , description : messages . getMessage ( 'toFlagDescription' ) } )
41
43
} ;
42
44
43
45
// Comment this out if your command does not require an org username
@@ -52,7 +54,7 @@ export default class Teams extends SfdxCommand {
52
54
public async run ( ) : Promise < AnyJson > {
53
55
const { stdout : log } = childProcess . spawnSync (
54
56
'git' ,
55
- [ 'log' , '5.0..HEAD' , '--oneline' ] ,
57
+ [ 'log' , this . flags . from + '..' + this . flags . to , '--oneline' ] ,
56
58
{ cwd : '/Users/gavignon/dev/CMA CGM/Git' , encoding : 'utf8' }
57
59
) ;
58
60
0 commit comments