Fetches a specific pull request and its first 10 comments,
limited by max_tokens.
Parameters
pr_number (int) – The number for the Github pull
max_tokens (int) – The maximum number of tokens in the response
Returns
A dictionary containing the pull’s title, body,
and comments as a string
Return type
dict
json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bool = False, encoder: Optional[Callable[[Any], Any]] = None, models_as_dict: bool = True, **dumps_kwargs: Any) → unicode¶
Generate a JSON representation of the model, include and exclude arguments as per dict().
encoder is an optional function to supply as default to json.dumps(), other arguments as per json.dumps().
list_branches_in_repo() → str[source]¶
Fetches a list of all branches in the repository.
Returns
A plaintext report containing the names of the branches.
Return type
str
list_files_in_bot_branch() → str[source]¶
Fetches all files in the active branch of the repo,
the branch the bot uses to make changes.
Returns
A plaintext list containing the the filepaths in the branch.
Return type
str
list_files_in_main_branch() → str[source]¶
Fetches all files in the main branch of the repo.
Returns
A plaintext report containing the paths and names of the files.
Return type
str
list_open_pull_requests() → str[source]¶
Fetches all open PRs from the repo
Returns
A plaintext report containing the number of PRs