Replies: 3 comments 3 replies
-
This seems like a good idea! But I think that this part: "and then to default to the default branch if none of these are found" should be its separate feature/pr/flag since it's not how it works today. But multiple base branches should be definable without breaking any backwards compatibility 😄 |
Beta Was this translation helpful? Give feedback.
-
It was easier for us to create a script that checks whether the default branch is configured correctly, so I will not be implementing this. We can keep it as an idea for the future. |
Beta Was this translation helpful? Give feedback.
-
What if it were to support special name of |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a set-up with multiple repositories with branches corresponding to various environments. However, some environments might be missing, on purpose:
repo-1, branches dev, uat, main
repo-2, branches uat,main
repo-3, branches main
Moreover, the default branch might not be set correctly.
It would be a good idea to allow a list of strings on the run --base-branch option to try all defined branches in a predefined order and then to default to the default branch if none of these are found. Currently only one branch is being tried.
I can implement this on my own, but wanted to confirm before I start working on it. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions