Skip to content
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

Failure to handle multiple repo: inputs in search query #256

Closed
zkoppert opened this issue Apr 27, 2024 · 1 comment · Fixed by #261
Closed

Failure to handle multiple repo: inputs in search query #256

zkoppert opened this issue Apr 27, 2024 · 1 comment · Fixed by #261
Assignees
Labels
bug Something isn't working

Comments

@zkoppert
Copy link
Member

Describe the bug

The logic around grabbing the owner and repo name is breaking when attempting to handle multiple repos.

To Reproduce

Run the action with SEARCH_QUERY set to a string with multiple repo: entries

Expected behavior

Proper handling of multiple repos in the search query.

Screenshots

No response

Additional context

No response

@zkoppert zkoppert added the bug Something isn't working label Apr 27, 2024
@zkoppert zkoppert self-assigned this Apr 29, 2024
@zkoppert
Copy link
Member Author

Traceback (most recent call last):
  File "/Users/zkoppert/repos/issue-metrics/./issue_metrics.py", line 369, in <module>
    main()
  File "/Users/zkoppert/repos/issue-metrics/./issue_metrics.py", line 283, in main
    owner_and_repository = get_owner_and_repository(search_query)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zkoppert/repos/issue-metrics/./issue_metrics.py", line 232, in get_owner_and_repository
    result["repository"] = item.split(":")[1].split("/")[1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant