-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
agent-qaTesting and verification agentTesting and verification agentarea-workflowsGitHub Actions workflowsGitHub Actions workflowsenhancementNew feature or requestNew feature or requestpriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impactpriority:P3Low: Nice to have, future consideration, minor improvementLow: Nice to have, future consideration, minor improvementtechnical-debtCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burdenCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burden
Description
Origin
PR #202 comment 2639566878 from Copilot
Current Behavior
Get-OriginalPRCommits function:
- Line 103: Fetches PR with
gh pr view --json commits - Line 111: Queries ALL repository commits via
gh api repos/.../commitsand filters
This is inefficient on large repositories and may hit API rate limits.
Enhancement
Use the commits already retrieved from gh pr view:
$pr = gh pr view $PRNumber --json commits 2> | ConvertFrom-Json
if ($null -eq $pr -or -not $pr.commits) {
return @()
}
return $pr.commitsRationale
- Eliminates redundant API call
- Avoids rate limit risk on large repos
- Already have the data from line 103
Acceptance Criteria
- Remove redundant gh api call at line 111
- Return $pr.commits directly
- Verify Pester tests still pass
- Test on PR with >10 commits
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agent-qaTesting and verification agentTesting and verification agentarea-workflowsGitHub Actions workflowsGitHub Actions workflowsenhancementNew feature or requestNew feature or requestpriority:P2Normal: Standard enhancement or bug fix, moderate impactNormal: Standard enhancement or bug fix, moderate impactpriority:P3Low: Nice to have, future consideration, minor improvementLow: Nice to have, future consideration, minor improvementtechnical-debtCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burdenCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burden