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

Double quote issue labels in search API #2084

Merged
merged 2 commits into from
Feb 9, 2020
Merged

Double quote issue labels in search API #2084

merged 2 commits into from
Feb 9, 2020

Conversation

zHaytam
Copy link
Contributor

@zHaytam zHaytam commented Feb 6, 2020

Fixes #2044

Hello,

I went with the easy way, double quote all labels. It will save us the check (whether the label has spaces or not) since having quotes on normal labels doesn't change anything.

I changed the test to include a test case label 2 and tested it separately on this repository.

@codecov
Copy link

codecov bot commented Feb 6, 2020

Codecov Report

Merging #2084 into master will decrease coverage by 3.73%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2084      +/-   ##
==========================================
- Coverage   70.79%   67.06%   -3.74%     
==========================================
  Files         538      538              
  Lines       14139    14138       -1     
==========================================
- Hits        10010     9481     -529     
- Misses       4129     4657     +528     
Impacted Files Coverage Δ
Octokit/Models/Request/RepositoryIssueRequest.cs 0.00% <0.00%> (-100.00%) ⬇️
Octokit/Models/Request/NewTreeItem.cs 0.00% <0.00%> (-66.67%) ⬇️
.../Request/Enterprise/UpdatePreReceiveEnvironment.cs 0.00% <0.00%> (-66.67%) ⬇️
Octokit/Models/Request/NotificationsRequest.cs 20.00% <0.00%> (-60.00%) ⬇️
Octokit/Helpers/ApiErrorExtensions.cs 50.00% <0.00%> (-50.00%) ⬇️
Octokit/Clients/Enterprise/EnterpriseClient.cs 56.25% <0.00%> (-43.75%) ⬇️
Octokit/Models/Response/PullRequestFile.cs 50.00% <0.00%> (-42.31%) ⬇️
Octokit/Models/Response/Authorization.cs 48.14% <0.00%> (-40.75%) ⬇️
Octokit/Models/Response/GitHubApp.cs 5.00% <0.00%> (-40.00%) ⬇️
Octokit/Models/Request/PullRequestReviewSubmit.cs 40.00% <0.00%> (-40.00%) ⬇️
... and 139 more

@shiftkey shiftkey changed the title Double quote issue labels, fixes #2044 Double quote issue labels in search API Feb 9, 2020
Copy link
Member

@shiftkey shiftkey left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @zHaytam!

@shiftkey shiftkey merged commit 911dd4a into octokit:master Feb 9, 2020
@shiftkey
Copy link
Member

shiftkey commented Feb 9, 2020

release_notes: Search Issues endpoint to does not handles labels containing spaces correctly

@zHaytam zHaytam deleted the quoted-tags branch February 19, 2020 20:03
@nickfloyd nickfloyd added Type: Bug Something isn't working as documented and removed category: bug labels Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search API: tags are not quoted
3 participants