Fix GitHub import of protected branches
What does this MR do and why?
It solves GitHub importer doesn't import all protected branches
Screenshots or screen recordings
GitHub-importer-doesnt-import-all-protected-branches
How to set up and validate locally
- Have a project with several branches on GitHub
- On GitHub create any branch protection rules for 2 non-default branches
- Import the project to GitLab
- Go to project -> Settings -> Repository -> Protected branches
- Look at the list of protected branches
- Ensure all the protected branches are present in the list
MR acceptance checklist
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tetiana Zavediuk