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

[BUG]: SearchIssues with SearchIssuesRequest.Assignee="none" throws ApiValidationException #2820

Open
1 task done
suchja opened this issue Nov 23, 2023 · 0 comments
Open
1 task done
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@suchja
Copy link

suchja commented Nov 23, 2023

What happened?

The following code produces a ApiValidationException:

var github = new GitHubClient(new ProductHeaderValue("myApp"));

SearchIssuesRequest? issuesRequest = new SearchIssuesRequest();
issuesRequest.Assignee = "none";

var issuesResult = await github.Search.SearchIssues(issuesRequest);

Current outcome: ApiValidationException
Expected outcome: All issues that are unassigned

Although the documentation for searching issues does not explicitly state, that it is possible to search for unassigned issues, filtering issues states that it is possible. So I would expect that this is a valid search scenario. Searching on the GitHub website does allow no:assignee.

I haven't tried so far whether filtering is possible for unassigned issues, but I'll try to check that as soon as possible.

Versions

Octokit.net 9.0.0

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@suchja suchja added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Nov 23, 2023
@suchja suchja changed the title [BUG]: SearchIssuesRequest with Assignee="none" throws ApiValidationException [BUG]: SearchIssues with SearchIssuesRequest.Assignee="none" throws ApiValidationException Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
Status: 🔥 Backlog
Development

No branches or pull requests

1 participant