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

Feature request: allow making releases from certain branches only. #198

Open
yakutovicha opened this issue Jan 9, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@yakutovicha
Copy link

yakutovicha commented Jan 9, 2023

Use case.

I've just mistakenly made a release from the wrong branch. After the tag was pushed to GitHub, our automated release machinery released the new version on GitHub and PyPI.

It would be great to have some safeguard mechanism to prevent this from happening.

Proposed solution.

It would be great to have an allowed branch pattern. Something like this:

    [bumpver]
    ...
    allowed_branch_pattern = "main"  # or similar
    ...
@mbarkhau
Copy link
Owner

I would accept a PR for this. Preferably using comma separation and glob syntax.

[bumpver]
...
allowed_branches = "master,main,release-*"

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

No branches or pull requests

2 participants