-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add branch protection call to client #28
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
Conversation
Coverage Report
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||
|
|
||
| def get_enterprise_audit_logs(self, *, search_phrase: Optional[str], **kwargs: Any): | ||
| def get_enterprise_audit_logs(self, *, search_phrase: str | None, **kwargs: Any): |
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.
new ruff did this
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.
Much better
| match e: | ||
| case httpx.HTTPStatusError(response=response) if ( | ||
| response.status_code == 404 | ||
| ): |
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.
don't WARN on 404, since that's normal if branch protection is not enabled.
Summary of Change
Add a new client call to grab the branch protection for a given branch on a repo.
Before Review
Before Merge