Ligare.GitHub

Libraries for working with GitHub.

class Ligare.GitHub.GitHub(auth_token, default_api_url='https://api.github.com')[source]

Extends PyGithub with better organization API handling.

__init__(auth_token, default_api_url='https://api.github.com')[source]
add_collaborator(repository, collaborator, permission=NotSet)[source]

Add a user as a collaborator to a repository.

create_repository(name, description, organization_name=None, template_name=None, private=True, visibility=None)[source]

Create a new repository.

get_repository(repository_name, organization_name=None)[source]

Get a repository. If organization_name is supplied, this will get the repository repository_name from that organization’s repositories.

get_team(organization, team_name)[source]

Get a team for an organization.

Modules

api