()
| 17 | } |
| 18 | |
| 19 | override async printToTerminal() { |
| 20 | const stats = await this.data; |
| 21 | if (!stats) { |
| 22 | return; |
| 23 | } |
| 24 | Log.info(bold('g3 branch check')); |
| 25 | if (stats.files === 0 && stats.separateFiles === 0) { |
| 26 | Log.info(`${stats.commits} commits between g3 and ${this.git.mainBranchName}`); |
| 27 | Log.info(` ${green('✔')} No sync is needed at this time`); |
| 28 | } else if (stats.separateFiles > 0) { |
| 29 | Log.info( |
| 30 | `${stats.separateFiles} primitives files changed, ${stats.files} Angular files changed, ` + |
| 31 | `${stats.insertions} insertions(+), ${stats.deletions} deletions(-) from ` + |
| 32 | `${stats.commits} commits will be included in the next sync\n` + |
| 33 | `Note: Shared primivites code has been merged. Only more Shared Primitives code can be ` + |
| 34 | `merged until the next sync is landed`, |
| 35 | ); |
| 36 | } else { |
| 37 | Log.info( |
| 38 | `${stats.files} files changed, ${stats.insertions} insertions(+), ${stats.deletions} ` + |
| 39 | `deletions(-) from ${stats.commits} commits will be included in the next sync`, |
| 40 | ); |
| 41 | } |
| 42 | Log.info(); |
| 43 | } |
| 44 | } |
no outgoing calls
no test coverage detected