You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When synchronizing a repository with default branch master to GitHub Enterprise Server, the default branch is wrongly set the first branch in the list of available branches after synchronization.
Repositories with default branch main do have the correct default branch after synchronization.
Ideally, the actions-sync should be able to handle any case. Otherwise we will need to adjust the default branch after synchronization.
The text was updated successfully, but these errors were encountered:
Thanks @pc-ahrens for reaching out.
This is intended behaviour currently.
When we are syncing the repo for first time that doesn't exists in enterprise instance, we create repo by default with main branch if exists. If not, it picks up the first one from existing branches.
So in this case, we need to set/change the default branch manually as a one time operation.
We have added this to our backlog and will priortize if there are more customers expecting this.
How do you manually set a default branch? Super-linter in my case is selecting master, but we use main, so it craps out saying the default branch doesn't exist.
When synchronizing a repository with default branch master to GitHub Enterprise Server, the default branch is wrongly set the first branch in the list of available branches after synchronization.
Repositories with default branch main do have the correct default branch after synchronization.
Ideally, the actions-sync should be able to handle any case. Otherwise we will need to adjust the default branch after synchronization.
The text was updated successfully, but these errors were encountered: