Skip to content

Commit

Permalink
Update a few logs and prompt messages for branch commands
Browse files Browse the repository at this point in the history
  • Loading branch information
srt4rulez committed Nov 14, 2021
1 parent e367beb commit 3893689
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ${chalk.blue('Repositories')}
${props.repos.join('\n')}
${chalk.blue('Branch Info')}
From Branch: ${props.fromBranch}
From Branch: ${chalk.magenta(props.fromBranch)}
Branch Name: ${chalk.green(props.branchName)}
`.trim();

Expand All @@ -28,6 +28,7 @@ const getDeleteBranchConfigLog = (props) => `
${chalk.blue('Repositories')}
${props.repos.join('\n')}
${chalk.blue('Action Info')}
Branch to delete: ${chalk.red(props.branchName)}
`.trim();

Expand Down Expand Up @@ -73,7 +74,7 @@ export const makeBranchCommand = (config) => {
{
type: 'confirm',
name: 'hasConfirmed',
message: `Are you sure you want to create this branch on all configured repositories? ${chalk.red('This action cannot be undone.')}`,
message: `Create "${chalk.green(branchName)}" branch from "${chalk.magenta(fromBranch)}" on all configured repositories? ${chalk.red('Warning: This action cannot be undone.')}`,
default: false,
},
]);
Expand All @@ -100,6 +101,7 @@ export const makeBranchCommand = (config) => {
branchName: branchName,
commitHash: '',
commitLink: '',
commitAuthor: '',
errorMessage: '',
};

Expand Down Expand Up @@ -168,7 +170,7 @@ export const makeBranchCommand = (config) => {
{
type: 'confirm',
name: 'hasConfirmed',
message: `Are you sure you want to delete this branch on all configured repositories? ${chalk.red('This action cannot be undone.')}`,
message: `Delete "${chalk.red(branchName)}" branch on all configured repositories? ${chalk.red('Warning: This action cannot be undone.')}`,
default: false,
},
]);
Expand Down

0 comments on commit 3893689

Please sign in to comment.