Skip to content

feature: support more configure file | add scopeFilter and typesDefault #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 28, 2022

Conversation

Zhengqbbb
Copy link
Owner

Related ISSUE

Input follow ISSUE URL address

#30

Type Of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📝 Document (This change requires a documentation update)
  • 🎨 Theme style (Theme style beautification)
  • ⚠ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🔨 Workflow (Workflow changes)

Clear Describe

A clear and concise description of what update for target.

  • feat: add .cz.js and cz.config.js config file
  • feat: add scopeFilters options
  • feat: add defaultType options
  • feat: support custom define config file
  • feat: support get promise Func options

Description

$ npm i -D cz-git
+ cz-git          (1.7 MB)
added 1 package in 0.461s

support custom define config file

e.g package.json

"config": {
    "commitizen": {
      "path": "node_modules/cz-git",
      "czConfig": "./config/cz.custom.js"
    }
  }

options:

  /**
   * @description: pin type item the top of the types list (match item value)
   */
  defaultType?: string;
  /**
   * @description: Filter select of prompt to select module scopes by the scope.value
   * @default: ['.DS_Store']
   */
  scopeFilters?: string[];

Test Case

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test case.

  • add loader testcase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant