Skip to content

Detect Subdirectory Type During Initialization #72

@sergiotejon

Description

@sergiotejon

Description:
When initializing gommitizen, it would be beneficial to automatically detect the type of the subdirectory (e.g., a Helm chart, a Python project, etc.). This detection should adapt the .version.json file to accommodate the specific subdirectory type, ensuring that the version bumping process is automatically adjusted for files within that subdirectory.

Use Case:
This feature will streamline the process for users working in monorepos containing different types of projects. By detecting the type of the subdirectory, gommitizen can provide a more tailored versioning experience, reducing the need for manual configuration.

Proposed Solution:

  1. Enhance the init command to scan the subdirectory and identify its type (e.g., a Helm chart, a Python project).
  2. Automatically adjust the .version.json file to include the necessary configuration for version bumping specific to the detected subdirectory type.

Benefits:

  • Simplifies the setup process for users.
  • Reduces manual configuration and potential errors.
  • Provides a more seamless and automated versioning experience for different project types within a monorepo.

Additional Context:

  • Examples of subdirectory types to detect: Helm charts, Python projects, Node.js projects, etc.
  • Ensure compatibility with existing gommitizen functionalities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions