The view_pull_request function has been refactored to improve code readability and maintainability. The changes focus on breaking down the function into smaller, more manageable components and enhancing documentation.
🔧 Code Refactoring
Split view_pull_request into multiple helper functions for better modularity.
Introduced get_github_repo, get_pull_requests, get_selected_pull_request, load_diff_data, get_task_description, and get_review_task functions.
📄 Documentation
Added docstrings to all new helper functions to improve code clarity.
🔄 Functionality
Updated the main view_pull_request function to orchestrate the new helper functions.
The
view_pull_request
function has been refactored to improve code readability and maintainability. The changes focus on breaking down the function into smaller, more manageable components and enhancing documentation.🔧 Code Refactoring
view_pull_request
into multiple helper functions for better modularity.get_github_repo
,get_pull_requests
,get_selected_pull_request
,load_diff_data
,get_task_description
, andget_review_task
functions.📄 Documentation
🔄 Functionality
view_pull_request
function to orchestrate the new helper functions.🔗 pr_manager/views.py