Branch-Protection fails with `-1` for multiple reasons: - lookup of a branch name that no more exists on the repository - unable to locate the branch even though it existed (maybe similar to #1320) - the main branch had a different name than the “main” None of these seem reasonable cases to be returning `-1`. Need to fix this.
Branch-Protection fails with
-1for multiple reasons:None of these seem reasonable cases to be returning
-1. Need to fix this.