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 pushing releases only to pre-defined remotes #198 #234

Open
danielhollas opened this issue Apr 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@danielhollas
Copy link

Currently, bumpver pushes to a remote that is configured for the current branch, typically, this would be origin,
however some users might want to configure default remote to point to a fork so that they don't pollute the origin repo with their feature branches.

However, when pushing a release by creating a tagged commit and then making a PR to merge into main branch, this approach does not work because merging pull requests does not transfer the tags (at least on GitHub).

To prevent this mistake from happening, it would be great to have a setting like:

allowed_remote= https://github.com/origin/repo

or perhaps allowed_remotes to allow for multiple allowed repos.

This feature is related to #198.

@mbarkhau
Copy link
Owner

mbarkhau commented May 3, 2024

Sounds reasonable. How does this translate to a cli parameter that can be passed to git push ?

@mbarkhau mbarkhau added the enhancement New feature or request label Aug 17, 2024
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