github-default-branch icon indicating copy to clipboard operation
github-default-branch copied to clipboard

Copy branch protections rather than renaming the pattern

Open mheap opened this issue 4 years ago • 0 comments

https://github.com/mheap/github-default-branch/issues/4#issuecomment-646299374

I think you have the feature to keep the previous branch around. So maybe it should not be an update of the pattern, but a copy of the settings?

If we skip deleting the old branch (using --skip-delete-old-branch), we should copy the settings instead of updating the protection to point at our new branch

mheap avatar Jun 20 '20 18:06 mheap