File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,10 +189,23 @@ module.exports = async ({
189189 }
190190
191191 if ( shouldCreateGitCommit ) {
192- const createCmd = `git add . && git commit -m '${ gitCommitMessage } '` ;
192+ const subMessage = targetPackages
193+ . reduce ( ( prev , pack ) => {
194+ const fromVersion = dependencyMap [ targetDependency ] . packs [ pack ] ;
195+
196+ if ( fromVersion === targetVersion ) return prev ;
197+
198+ return fromVersion
199+ ? [ ...prev , `* ${ pack } : ${ fromVersion } → ${ targetVersion } ` ]
200+ : [ ...prev , `* ${ pack } : ${ targetVersion } ` ] ;
201+ } , [ ] )
202+ . join ( "\n" ) ;
203+
204+ const createCmd = `git add . && git commit -m '${ gitCommitMessage } ' -m '${ subMessage } '` ;
193205 await runCommand ( `cd ${ projectDir } && ${ createCmd } ` , {
194206 startMessage : `${ chalk . white . bold ( projectName ) } : ${ createCmd } ` ,
195- endMessage : chalk . green ( `Commit created ✓` )
207+ endMessage : chalk . green ( `Commit created ✓` ) ,
208+ logOutput : false
196209 } ) ;
197210 }
198211} ;
You can’t perform that action at this time.
0 commit comments