Skip to content

Commit

Permalink
Fix tagName in git tag prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 11, 2021
1 parent 21cca12 commit f007382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plugin/git/prompts.js
Expand Up @@ -8,7 +8,7 @@ export default {
},
tag: {
type: 'confirm',
message: context => `Tag (${format(context.git.tagName, context)})?`,
message: context => `Tag (${format(context.tagName, context)})?`,
default: true
},
push: {
Expand Down
2 changes: 1 addition & 1 deletion test/prompt.js
Expand Up @@ -63,7 +63,7 @@ test('should create prompt', async t => {
git: { tagName: 'v${version}' },
npm: { name: 'my-pkg', tag: 'next' }
});
config.setContext({ version: '1.0.0', git: { tagName: '1.0.0' } });
config.setContext({ version: '1.0.0', tagName: '1.0.0' });
const inquirer = t.context.getInquirer(stub);
const p = factory(Prompt, { container: { inquirer } });
p.register(prompts[namespace], namespace);
Expand Down

0 comments on commit f007382

Please sign in to comment.