Skip to content

Commit

Permalink
fix: cancel unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwusanyu-c committed Feb 21, 2023
1 parent 8068111 commit 471d981
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
9 changes: 9 additions & 0 deletions packages/core/command-option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,14 @@ export const createPrOption = (list: IPRCheckRes[]) => {
message: 'Please select the PR that needs to be updated',
optionsPerPage: 20,
choices: list.map(handler),
onRender() {
// @ts-expect-error rewrite output see: https://github.com/terkelg/prompts/issues/389
if (this.firstRender) {
// @ts-expect-error rewrite output see: https://github.com/terkelg/prompts/issues/389
this.renderDoneOrInstructions = function() {
return ''
}
}
},
}] as unknown as prompts.PromptObject[]
}
18 changes: 18 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion vertify-commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const commitRE
= /^(revert: )?(optimizate|feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/

if (!commitRE.test(msg)) {
console.log()
console.error(
` ${chalk.bgRed.white(' ERROR ')} ${chalk.red(
'invalid commit message format.',
Expand Down

0 comments on commit 471d981

Please sign in to comment.