Skip to content

Commit 1e19af2

Browse files
Commit via running ake Sources/search
1 parent 98b0017 commit 1e19af2

File tree

2 files changed

+403
-180
lines changed

2 files changed

+403
-180
lines changed

Sources/search/Client.swift

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -330,22 +330,13 @@ public struct Client: APIProtocol {
330330
}
331331
/// Search issues and pull requests
332332
///
333-
/// Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api).
334-
///
335-
/// When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted
336-
/// search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).
337-
///
338-
/// For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.
339-
///
340-
/// `q=windows+label:bug+language:python+state:open&sort=created&order=asc`
341-
///
342-
/// This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.
343-
///
344-
/// > [!NOTE]
345-
/// > For requests made by GitHub Apps with a user access token, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)."
333+
/// > [!WARNING]
334+
/// > **Notice:** Search for issues and pull requests will be overridden by advanced search on September 4, 2025.
335+
/// > You can read more about this change on [the GitHub blog](https://github.blog/changelog/2025-03-06-github-issues-projects-api-support-for-issues-advanced-search-and-more/).
346336
///
347337
/// - Remark: HTTP `GET /search/issues`.
348338
/// - Remark: Generated from `#/paths//search/issues/get(search/issues-and-pull-requests)`.
339+
@available(*, deprecated)
349340
public func search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests(_ input: Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Input) async throws -> Operations.search_sol_issues_hyphen_and_hyphen_pull_hyphen_requests.Output {
350341
try await client.send(
351342
input: input,
@@ -395,6 +386,13 @@ public struct Client: APIProtocol {
395386
name: "page",
396387
value: input.query.page
397388
)
389+
try converter.setQueryItemAsURI(
390+
in: &request,
391+
style: .form,
392+
explode: true,
393+
name: "advanced_search",
394+
value: input.query.advanced_search
395+
)
398396
converter.setAcceptHeader(
399397
in: &request.headerFields,
400398
contentTypes: input.headers.accept

0 commit comments

Comments
 (0)