Skip to content

fix: skip issues that are already assigned (#131) - #215

Merged
drkrillo merged 3 commits into
drkrillo:mainfrom
shantanubilaw:main
Nov 21, 2026
Merged

drkrillo merged 3 commits into
drkrillo:mainfrom
shantanubilaw:main

Conversation

@shantanubilaw

@shantanubilaw shantanubilaw commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR updates the issue-fetching logic to skip GitHub issues that are already assigned. It adds the is:unassigned filter to the GitHub Search API query and includes a test to verify that only unassigned issues are returned.

Related Issue

Fixes #131

Checklist

  • I read the [CONTRIBUTING.md](../CONTRIBUTING.md)
  • This PR description is written by me, not by AI

@drkrillo

Copy link
Copy Markdown
Owner

hey, thanks for this! before reviewing.

  1. can you put a meaniingful title to the PR?
  2. did you check this locally to make sure its working properly?

@shantanubilaw shantanubilaw changed the title fix: #131 fix: skip issues that are already assigned (#131) Nov 19, 2026

@drkrillo drkrillo left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

smoke test is failing: this returns zero issues (empty CSV). the "Desired behavior" in the issue is already giving the solution... run the action locally to confirm it returns rows please. the steps to follow are in the docs. if you need any help dont hesitate to ask. asking is good :)

Comment thread app/tests/test_api_handler.py Outdated

request_url = mock_api_instance.make_request.call_args[0][0]

assert "is:unassigned" in request_url

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

this passes for any string, so it green-lit the broken query, assert the correct qualifier here instead please

@shantanubilaw

Copy link
Copy Markdown
Contributor Author

sure ,
updated the PR

drkrillo
drkrillo previously approved these changes Nov 21, 2026
@drkrillo

Copy link
Copy Markdown
Owner

thanks a lot @shantanubilaw :) and congratz on your first open source PR, I see you are a first time github contributor :) the fix works and the smoke test returns real rows. also thanks for the extra logging, the "found X out of Y" line is useful to spot when the search gets capped at 100

one tiny thing if you want before I merge: issues = [] is unused now, and the blank lines before class TemplateManager went missing. if you don't get to it, no worries, I'll merge it as is

for your next PRs, keep the full checklist from the template please

if you want to keep contributing, I think that #203 might be a good follow up on this. #211 was near, so you might what to check that PR in case you want to take it. just comment on the issue and Ill assign it to you.

@drkrillo
drkrillo merged commit e7aaaec into drkrillo:main Nov 21, 2026
3 checks passed
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.

[ENHANCEMENT]: Skip issues that are already assigned

2 participants