-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With org: or owner: in SEARCH_QUERY the action fails #290
Comments
@albertosantini Thank you for filing this issue. We will take a look at this as soon as possible. Please let us know if you'd like to try out a PR for this. We don't want to block an opportunity for others to contribute fixes. 🙇 |
I am not so proficient in Python. The name of this test is misleading because there is not the repo in the query and, indeed, the repo is empty.
Anyway the offending code is the following one:
And the test above needs to be improved to catch the case of the offending lines above. Furthermore
I would change the logic in
and not to return a List, but directly a string of owners and repositories. |
Maybe the image of the log is cropped, but the error is So another approach is testing if there is any
|
What about using a default value if the key doesn't exist (quick fix)?
|
Fixes #290 - [x] handle trying to access repository from dictionary when not present (use default of empty string) - [x] add test to ensure we cover this scenario - [x] handle issue where `time_to_close` variable was being access before possibly being declared Signed-off-by: jmeridth <[email protected]>
Fixes #290 - [x] handle trying to access repository from dictionary when not present (use default of empty string) - [x] add test to ensure we cover this scenario - [x] handle issue where `time_to_close` variable was being access before possibly being declared Signed-off-by: jmeridth <[email protected]>
Thanks @jmeridth. Tested. Ok. |
Describe the bug
If in SEARCH_QUERY I use
repo:my_org/my_project ...
the action works correctly.
If I use
org:my_org ...
orowner:my_owner ...
it fails as the repositories are not listed.
See screenshot of action log.
To Reproduce
Using
org:
orowner:
and notrepo:
keys in the SEARCH_QUERY.Expected behavior
The action is executed
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered: