Skip to content

fix: filter out pull requests and increase fetch limit for accurate i…#2765

Open
fragan7dsouza wants to merge 1 commit into
DeepSourceCorp:masterfrom
fragan7dsouza:fix-inaccurate-issue-count
Open

fix: filter out pull requests and increase fetch limit for accurate i…#2765
fragan7dsouza wants to merge 1 commit into
DeepSourceCorp:masterfrom
fragan7dsouza:fix-inaccurate-issue-count

Conversation

@fragan7dsouza

Copy link
Copy Markdown

bug #2561 fixed and pushed

Copilot AI review requested due to automatic review settings June 23, 2026 08:01
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@fragan7dsouza is attempting to deploy a commit to the DeepSource Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Addresses reported undercounting of issues by (a) increasing the per-label fetch limit and (b) excluding pull requests returned by the Issues API so the generated issue list better reflects actual issues.

Changes:

  • Increased ISSUE_LIMIT from 10 to 100 when fetching issues per label.
  • Filtered out pull requests when collecting “good first issues”.
  • Added a unit test to verify PRs are excluded from the collected issues.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
gfi/populate.py Increases fetched issue batch size and filters PRs out of the issues list used to generate site data.
gfi/test_data.py Adds a unit test to ensure PRs are not included in the returned info["issues"].

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread gfi/populate.py
ISSUE_SORT = "created"
ISSUE_SORT_DIRECTION = "desc"
ISSUE_LIMIT = 10
ISSUE_LIMIT = 100
Comment thread gfi/test_data.py
}
}

rate_limiter = GitHubRateLimiter(mock_client, requests_per_second=100.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants