Create a new endpoint that returns a prioritized list of work items (issues and PRs) assigned to the current user, ranked based on configurable criteria.
Requirements
Endpoint
GET/api/prioritized-items
Returns open items assigned to the current user
Sorted by priority (highest first)
Prioritization Rules
Global Rules (all repositories):
Urgent label (+100 points): Items with 'urgent' label
PR with approvals (+80 points): Pull requests that have approved reviews
Overview
Create a new endpoint that returns a prioritized list of work items (issues and PRs) assigned to the current user, ranked based on configurable criteria.
Requirements
Endpoint
/api/prioritized-itemsPrioritization Rules
Global Rules (all repositories):
Repository-Specific Rules:
Configuration
Store rules in a configurable format (e.g., GithubConfig) so they can be easily added, adjusted, or removed without code changes.
Response Format
Each item should include:
Performance
Use Case
Provides a personalized 'what to work on next' list based on urgency and review status, with transparency on why items are prioritized.