-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Allow passing a base branch that doesn't have version info #70
Conversation
I think this change is reasonable. |
Tests are currently failing on main and so this PR is affected, I fixed them in #76. |
I think allowing it to be configured via the toml file is a good idea as well. Would you be able to add that in a separate PR? |
I can do it here or in a separate PR, whatever you prefer. Can probably get to it tomorrow. I assume you would want this to be a true/false setting determining whether branches without version info are allowed (defaulting to false to keep the current behavior intact)? |
I think it should support the original behavior if not supplied. |
Alright, I added a While looking into this, I also realized that I suggested adding such an option in the PR's description which I didn't really realize when you asked me to add it 😄 |
Co-authored-by: Ezio Melotti <[email protected]>
I created python/miss-islington#639 to make miss-islington work with this PR since I realized that this is going to be necessary now that this also adds a new configuration option. |
I addressed the review and resolved the merge conflicts. Seems like I may have missed the merge window for the release though 😄 If by the time this is looked at by a maintainer new conflicts arise, just let me know and I'll resolve them - maybe I'll finally be able to use upstream directly :) |
@hugovk mind taking a look? |
@Mariatta @ezio-melotti Any further comments? |
Thank you @Jackenmen for creating this; it's really helpful. In Airflow, we're working on automating backporting. We attempted to use cherry-picker, but due to version requirements in the base branch, it isn't feasible. This is because our Apache Airflow project uses slightly different branch naming conventions (ex: v2-1-test, v3-1-stable etc;) . @hugovk Is there a plan to release this in the next cycle? If so, could you please share when that might be? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
I'm glad to learn I'm not the only person that finds this feature useful 😄 Have you tried installing from this PR to see that it definitely works for your use case? Might be worth doing considering that cherry-picker doesn't have a very regular release schedule. |
Yes i have tested it is working :) . cool |
Indeed you are not the only one @Jackenmen it would be great to merge this one, we really would love to use it in Airflow. @uranusjr - one of the PyPI maintainers and our fellow PMC member recommended it to us. Also we checked a number of other solutions and cherry-picker only lacks this particular feature and @gopidesupavan had already tested that it would work for for Apache Airflow. And we are now considering forking the project rather than installing from PyPI. So it would be great to get this one merged and released. @hugovk @ezio-melotti @ambv - Is there anything we can help with to make it happen :) ? Or maybe there are some concerns with merging that one ? |
I'll merge and release later today :) |
🙇 🙇 🙇 🙇 |
@potiuk I can also offer using my Patchback bot that can work as an automatic companion to this semi-annual CLI tool FYI. Examples: pytest-dev/pytest#12912 (comment) / aio-libs/aiohttp#9852 (comment). Feel free to ping me in a separate issue or on slack if interested, so we don't cause unnecessary notifications here.. |
@webknjaz our world is small :) . I think we have certain limitations int the Apache Software Foundation and 3rd-party bots that can update content are generally not approved by the infrastructure. Of course details matters and maybe @gopidesupavan can take a look at it :) |
Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: jack1142 <[email protected]> Co-authored-by: Mariatta Wijaya <[email protected]>
@potiuk yeah, I figured you might want to run own instance, which is entirely possible 🤷♂️ |
Yep. We might do just that. |
Yeah i will have a look. |
Released as 2.4.0 🍒🚀 |
Fantastic! Many thanks! |
Woohoo thank you. Appreciate your help and support 🙂 |
Resolves #69
I could add enforcement of something here if this is too lax but I'm not sure what kind of check that could be. I suppose I could also add an option to
.cherry_picker.toml
that needs to be explicitly enabled to allow passing non-version branches if that makes it any better.I'm aware this issue wasn't accepted but I kinda felt like doing it anyway, even if it doesn't end up merged :P