Skip to content
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

Prevent gommitizen bump on non-main branches #71

Open
sergiotejon opened this issue Feb 5, 2025 · 0 comments
Open

Prevent gommitizen bump on non-main branches #71

sergiotejon opened this issue Feb 5, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@sergiotejon
Copy link
Contributor

Objective:
Prevent users from executing a gommitizen bump on any branch other than the main branch.

Steps:

  1. Determine Conditions for Restriction:

    • Identify the part of the codebase where the gommitizen bump is executed.
    • Confirm the name of the main branch in the repository.
  2. Implement Restriction Logic:

    • Add a condition in the gommitizen bump execution code to check if the current branch is the main branch.
    • If the current branch is not the main branch, prevent the gommitizen bump and provide an appropriate message to the user.
  3. Testing:

    • Perform tests by attempting a gommitizen bump on the main branch and on a non-main branch to ensure the restriction logic works correctly.
  4. Documentation and Communication:

    • Document the changes made to implement this restriction.
    • Inform the relevant team members and request a review of the implementation.
@sergiotejon sergiotejon added enhancement New feature or request good first issue Good for newcomers labels Feb 5, 2025
@sergiotejon sergiotejon added this to the Release 0.9.0 milestone Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant