Returns
A message confirming the creation of the review request
Return type
str
delete_file(file_path: str) → str[source]¶
Deletes a file from the repo
:param file_path: Where the file is
:type file_path: str
Returns
Success or failure message
Return type
str
dict(*, 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) → DictStrAny¶
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.
classmethod from_orm(obj: Any) → Model¶
get_files_from_directory(directory_path: str) → str[source]¶
Recursively fetches files from a directory in the repo.
Parameters
directory_path (str) – Path to the directory
Returns
List of file paths, or an error message.
Return type
str
get_issue(issue_number: int) → Dict[str, Any][source]¶
Fetches a specific issue and its first 10 comments
:param issue_number: The number for the github issue
:type issue_number: int
Returns
A dictionary containing the issue’s title,
body, comments as a string, and the username of the user
who opened the issue
Return type
dict
get_issues() → str[source]¶
Fetches all open issues from the repo excluding pull requests
Returns
A plaintext report containing the number of issues
and each issue’s title and number.
Return type
str
get_pull_request(pr_number: int) → Dict[str, Any][source]¶
Fetches a specific pull request and its first 10 comments,