Files
cleveragents-core/features/ca_continuous_pr_reviewer.feature
HAL9000 bf75791751 chore(agents): add milestone-based PR prioritization to ca-continuous-pr-reviewer
Added new continuous PR reviewer agent (ca-continuous-pr-reviewer) that prioritizes
pull requests based on their associated milestone. The agent:

- Fetches all milestones and open PRs
- Assigns priority scores based on milestone due date, MoSCoW labels, and PR age
- Sorts PRs by priority score (descending)
- Reviews PRs in milestone order, ensuring critical path items are reviewed first

Added comprehensive BDD feature tests for milestone-based prioritization scenarios:
- Prioritize PRs by milestone due date
- Prioritize by MoSCoW labels within milestone
- Use PR age as tie-breaker for same milestone/label

ISSUES CLOSED: #3111
2026-06-06 11:52:49 -04:00

25 lines
1011 B
Gherkin

Feature: Continuous PR Reviewer with Milestone-Based Prioritization
As a code reviewer
I want to review multiple PRs in a single session
So that I can prioritize reviews based on milestone criticality
Scenario: Prioritize PRs by milestone due date
Given a repository with multiple open PRs
And PRs assigned to different milestones
When the continuous PR reviewer starts
Then PRs are reviewed in milestone priority order
And earlier milestone due dates are reviewed first
Scenario: Prioritize by MoSCoW labels within milestone
Given PRs in the same milestone
And some PRs have MoSCoW labels
When the continuous PR reviewer processes them
Then Must Have PRs are reviewed before Should Have
And Should Have PRs are reviewed before Could Have
Scenario: Use PR age as tie-breaker
Given multiple PRs with same milestone and MoSCoW label
When the continuous PR reviewer sorts them
Then older PRs are reviewed first
And newer PRs are reviewed last