-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
fix: throw better error if default branch is missing in gitea #9228
fix: throw better error if default branch is missing in gitea #9228
Conversation
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
@rishabh625 here's the alternative fix for the unit test failure. |
Codecov Report
@@ Coverage Diff @@
## master #9228 +/- ##
==========================================
+ Coverage 45.53% 45.79% +0.26%
==========================================
Files 219 219
Lines 25897 25864 -33
==========================================
+ Hits 11792 11845 +53
+ Misses 12463 12373 -90
- Partials 1642 1646 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM , but I want ci to be successful before merge
…rgoproj#9228) * fix: fall back to only branch if default branch is missing in gitea Signed-off-by: Michael Crenshaw <michael@crenshaw.dev> * throw meaningful error, use different org for test Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
A gitea unit test is failing because the gitea API is returning
main
as the default branch for https://gitea.com/gitea/test-openldap when the only existing branch ismaster
.I've modified the "get branch" logic to fall back to the only branch if the default branch is missing.