fix: filter out pull requests and increase fetch limit for accurate i…#2765
Open
fragan7dsouza wants to merge 1 commit into
Open
fix: filter out pull requests and increase fetch limit for accurate i…#2765fragan7dsouza wants to merge 1 commit into
fragan7dsouza wants to merge 1 commit into
Conversation
|
@fragan7dsouza is attempting to deploy a commit to the DeepSource Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
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_LIMITfrom 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.
| ISSUE_SORT = "created" | ||
| ISSUE_SORT_DIRECTION = "desc" | ||
| ISSUE_LIMIT = 10 | ||
| ISSUE_LIMIT = 100 |
| } | ||
| } | ||
|
|
||
| rate_limiter = GitHubRateLimiter(mock_client, requests_per_second=100.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bug #2561 fixed and pushed