You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
repo_name (str): The name of the GitHub repository.
119
120
pr_number (int): The pull request number to fetch.
120
121
Returns:
121
-
Dict[str, Any]: A dictionary containing the pull request information if successful, or an empty dictionary if no information is found or an error occurs.
122
+
str: A string containing the pull request information if successful, or a 'No changes' string if no information is found or an error occurs.
122
123
Error Handling:
123
-
Logs an error message and prints the traceback to stderr if an exception is raised during the fetch operation. Returns an empty dictionary in case of errors.
124
+
Logs an error message and prints the traceback to stderr if an exception is raised during the fetch operation. Returns error string in case of errors.
124
125
"""
125
126
logging.info(f"Fetching PR #{pr_number} from {repo_owner}/{repo_name}")
0 commit comments