Skip to content

feat: issue ratio signal#49

Merged
cdklabs-automation merged 9 commits intomainfrom
behuang/issues_ratio_signal
Nov 13, 2025
Merged

feat: issue ratio signal#49
cdklabs-automation merged 9 commits intomainfrom
behuang/issues_ratio_signal

Conversation

@huang-benny
Copy link
Contributor

@huang-benny huang-benny commented Nov 11, 2025

This PR adds a new openIssuesRatio signal to the QUALITY pillar that measures the percentage of open issues relative to total issues in a repository. This provides insight into how well a package maintainer is keeping up with issue resolution.

Changes:

  • Fetches both open and total issue counts from GitHub GraphQL API
  • Uses issues(states: OPEN) and issues queries to get counts
  • Returns 100 (worst score) if issue data is unavailable or total issues is 0
  • Added calculateOpenIssuesRatio() function to calculate the percentage
  • Rounds ratio to 1 decimal place for precision

Scoring:

  • ≤25% open issues: 5 stars
  • 26-50% open issues: 4 stars
  • 51-75% open issues: 3 stars
  • 76-90% open issues: 2 stars
  • 90%+ open issues: 1 star

Example CLI Input and Output:

cdk-construct-analyzer cdk-ecr-deployment --details  

LIBRARY: cdk-ecr-deployment
VERSION: 4.0.3

OVERALL SCORE: 76/100

---

SUBSCORES
  MAINTENANCE :           67/100
  QUALITY     :           80/100
  POPULARITY  :           88/100

---

=== MAINTENANCE ===                                   SCORE  WEIGHT
— Time To First Response ............................ ★★☆☆☆    15
— Provenance Verification ........................... ★★★★★    10
— Release Frequency ................................. ★★★★☆    10
— Number Of Contributors - Maintenance .............. ★★★★☆    5
— Open Issues Ratio ................................. ★★★★★    5

=== QUALITY ===                                       SCORE  WEIGHT
— Documentation Completeness ........................ ★★★★☆    5
— Tests Checklist ................................... ★★★☆☆    5
— Author Package Count .............................. ★★★★★    5
— Release Notes Include Feats And Fixes ............. ★★★★★    5
— Stable Versioning ................................. ★★★★☆    5

=== POPULARITY ===                                    SCORE  WEIGHT
— Weekly Downloads .................................. ★★★★★    15
— Github Stars ...................................... ★★★★☆    10
— Number Of Contributors - Popularity ............... ★★★★☆    5

Copy link
Contributor

@kaizencc kaizencc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits

@cdklabs-automation cdklabs-automation added this pull request to the merge queue Nov 13, 2025
Merged via the queue into main with commit 49efdb2 Nov 13, 2025
7 checks passed
@cdklabs-automation cdklabs-automation deleted the behuang/issues_ratio_signal branch November 13, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants