# Functions
CreateHook is a helper function that creates a post-commit hook for the specified repository.
DeleteHook is a helper function that deletes a post-commit hook for the specified repository.
GetFile is a helper function that retrieves a file from GitHub and returns its contents in byte array format.
GetHook is a helper function that retrieves a hook by hostname.
GetUserRepos is a helper function that returns a list of all user repositories.
NewClient returns a client at the specified url.
NewClientToken returns a client at the specified url that authenticates all outbound requests with the given token.
# Structs
Branch represents a branch, including protection.
Client represents the simple HTTP client for the GitHub API.
DismissalRestrictions object must have the following keys.
Error represents an API error.
Github provides the available configuration values.
RequiredPullRequestReviews pull request review enforcement of protected branchEnabled for GitHub Apps.
RequiredStatusChecks status checks of protected branch.
Restrictions restrict who can push to this branch.