main.GithubRepo

class main.GithubRepo(owner, repo)

Class representing Github repo with set of wrappers for GitHub API.

Returns

GithubRepo instance

Return type

_type_

__init__(owner, repo)

Instantiate Github repository class with owner and repo name.

Parameters
  • owner (_type_) – owner of repository

  • repo (_type_) – repository name

Methods

__init__(owner, repo)

Instantiate Github repository class with owner and repo name.

download_issues_all()

Downloads all issues from Github and store them as list of dictionaries.

get_access_token()

Returns access token from ENV variable GITHUB_TOKEN or from pre-defined file "access_token.priv".

get_issues_only()

Getter for issues from given Github repository ommitting pull requests (treated by Github also as an issue).

get_repo_url()

Getter for GitHub API URL for the given repository.

get_transformed_issues(trans_fnc)

Transformation of issue details according to provided function.

Attributes

api_repo_url