-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Template variables support for release-pr
branch name
#1991
Comments
I agree with you that Plus, the version could change (e.g. because there's a new breaking change and so instead of 0.4.1 is now 0.5.0). The branch will change so release-plz needs to close and open a new PR. So much complexity added! Is it worth it? Why is the current prefix not good enough for your purposes? |
I understand that the additional complexity introduced by this approach may not be suitable for everyone. However we don't need to force users to use mechanisms that are not suitable for their project. Some of this variables can be exposed with annotation that there is no guarantee to work under some known circumstances (your example with multiple projects in workspace) and yet for my flow it address my needs. Currently I'm not using whole GHA flow. I have removed part responsible for creating release PR after changes merged to main branch. My release flow can be explained in this few steps:
Naming convention is important for me to standardize way how I construct changelog file. As mentioned earlier, I'd like to contribute to this project by implementing the feature discussed. To do so effectively, I'd greatly appreciate it if someone could point me towards the relevant files that I should be interested in. This would help me get started on a more focused path and ensure that my contribution aligns with the existing codebase. |
as a workaround, since you work locally you could also run |
sorry I clicked close by mistake 😅
The complexity mainly is added to the release-plz codebase. Implementing this feature might be tricky and release-plz will become more difficult to maintain maybe. I need to think about this. 🤔
What naming convention do you have if I can ask? I want to understand the use case to evaluate if it's worth implementing this feature |
Motivations
Currently we can provide static text as
pr_branch_prefix
in config file. This solution is not that flexible, and requires using suggested branch naming strategy. I think it would be better to replace it with template system that allows you on providing such configuration:If somebody wants to remain current behavior we can leave
pr_branch_prefix
as legacy option that would automatically be interpreted as:If instructed I can implement this feature
The text was updated successfully, but these errors were encountered: