oxidecomputer/cio

Repo settings sync during webhook fails silently

Closed this issue · 3 comments

#185 fixed the issue with repository events failing to be handled. Syncing settings though failed with a repo that was recently added to the org (06/14 14:25 CDT), The handler failed without an error message at some point prior to assigning teams. This particular repo did not have any commits pushed, and it is possible that sync settings needs to be changed to account for this case.

Added logging during repo sync to try and capture the errors that arise.

One detected issue is that repo sync fails if a default branch can not be found. This should be fixed so that it does not cancel all other work if default branch protection can not be set.

Repo syncing has been updated to no longer fail when a repo without a default branch is processed. Closing this issue, but I will re-open if we see further issues.