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
Protected branch handling -- name of branch #2374
Comments
Why not just date+uuid? And maybe some prefix, like |
The main goal here is to make it possible to interpret and reconstruct the purpose of these branches, and I think the above suggestions are good ideas to help realize that goal
So, what about the following structure: |
I'm fine with dropping the For the second part, I would argue that using |
I do think it makes sense to also put in what branch the branch was originally made from, like |
Yes, I agree that it makes sense to remember the name of the branch the new branch derives from (I had misunderstood what was meant there before). Will using the commit hash lead to a unique branch name? E.g., what happens if ask for a project to get upgraded, do not merge that branch, and then change the default session settings. Wouldn't that try to create two branches, both named |
The In your scenario, I expect a new branch to be created. |
Description
PR #1222 introduced support for projects in which the default branch does not allow pushes. To handle this, a new branch is created and the changes are pushed to the new branch. The name of this new branch is a UUID.
Thought the UUID is a robust solution, naming a branch this way makes it difficult to read. As an alternative, I suggest using a timestamp. For example,
YYYY-MM-DD_HH-MM_[3 digit random number]
. This introduces a potential race condition if multiple branches are created simultaneously, but this is 1. unlikely, and 2. should be solved by generating a new branch name if a push fails.Having branches names this way makes the branch name easier to interpret.
The text was updated successfully, but these errors were encountered: