RepoHandler

class baldrick.github.RepoHandler(repo, branch=None, installation=None)

Bases: baldrick.github.github_api.GitHubHandler

Methods Summary

get_all_labels()

Get all label options for this repo

get_file_contents(path_to_file[, branch])

get_issues(state, labels[, exclude_pr])

Get a list of issues.

open_pull_requests()

Methods Documentation

get_all_labels()

Get all label options for this repo

get_file_contents(path_to_file, branch=None)
get_issues(state, labels, exclude_pr=True)

Get a list of issues.

Parameters
  • state ({'open', ...}) – Status of the issues.

  • labels (str) – List of comma-separated labels; e.g., Closed?.

  • exclude_pr (bool) – Exclude pull requests from result.

Returns

issue_list – A list of matching issue numbers.

Return type

list

open_pull_requests()