Skip to content
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

Handle missing main branch for branch protections #34

Merged
merged 2 commits into from
Feb 13, 2023
Merged

Conversation

rylev
Copy link
Member

@rylev rylev commented Feb 9, 2023

This fixes two issues currently breaking the sync mechanism:

  • Some older repo member permissions come back as "pull" instead of "read". We now handle this.
  • Freshly created repos don't have main branches so we could not create branch protections. We now handle the missing branch gracefully and also auto init the repo so that it should always have an initial commit.

CI is failing due to #35

@rylev rylev merged commit 50d5930 into master Feb 13, 2023
@rylev rylev deleted the handle-missing-main branch February 13, 2023 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants