Clone the repo:
git clone https://github.com/dylansnyk/gitlab-default-branch
Update lines 4-7 of the reimport-repos.py file:
GITLAB_TOKEN = "" # read_api scope required
SNYK_TOKEN = ""
ORG_ID = ""
INTEGRATION_ID = ""
Run the script:
python3 reimport-repos.py
The branch can then be filtered in the Reports:
- Currently, this will only perform the action one org at a time.
- The old branch will not be deleted.