diff --git a/Pulse/Github/Operations/Queries/SearchPullRequestsQuery.graphql.swift b/Pulse/Github/Operations/Queries/SearchPullRequestsQuery.graphql.swift index d72170f..7c98c11 100644 --- a/Pulse/Github/Operations/Queries/SearchPullRequestsQuery.graphql.swift +++ b/Pulse/Github/Operations/Queries/SearchPullRequestsQuery.graphql.swift @@ -8,7 +8,7 @@ extension Github { static let operationName: String = "SearchPullRequests" static let operationDocument: ApolloAPI.OperationDocument = .init( definition: .init( - #"query SearchPullRequests($query: String!) { search(type: ISSUE, last: 100, query: $query) { __typename nodes { __typename ... on PullRequest { repository { __typename name owner { __typename login } } title url reviewDecision mergeable isDraft updatedAt comments(last: 1) { __typename nodes { __typename author { __typename login } bodyText } } commits(last: 1) { __typename nodes { __typename commit { __typename url statusCheckRollup { __typename state } } } } reviews(states: APPROVED) { __typename totalCount } } } } }"# + #"query SearchPullRequests($query: String!) { search(type: ISSUE, last: 100, query: $query) { __typename nodes { __typename ... on PullRequest { repository { __typename name owner { __typename login } } title url reviewDecision mergeable isDraft updatedAt comments(last: 1) { __typename nodes { __typename author { __typename login } } } commits(last: 1) { __typename nodes { __typename commit { __typename url statusCheckRollup { __typename state } } } } reviews(states: APPROVED) { __typename totalCount } } } } }"# )) public var query: String @@ -173,13 +173,10 @@ extension Github { static var __selections: [ApolloAPI.Selection] { [ .field("__typename", String.self), .field("author", Author?.self), - .field("bodyText", String.self), ] } /// The actor who authored the comment. var author: Author? { __data["author"] } - /// The body rendered to text. - var bodyText: String { __data["bodyText"] } /// Search.Node.AsPullRequest.Comments.Node.Author /// diff --git a/Pulse/Github/SearchPullRequests.graphql b/Pulse/Github/SearchPullRequests.graphql index a41e2bf..1962f64 100644 --- a/Pulse/Github/SearchPullRequests.graphql +++ b/Pulse/Github/SearchPullRequests.graphql @@ -19,7 +19,6 @@ query SearchPullRequests($query: String!) { author { login } - bodyText } } commits(last: 1) { diff --git a/Pulse/PullRequestAPI.swift b/Pulse/PullRequestAPI.swift index 0418be7..9bcebc4 100644 --- a/Pulse/PullRequestAPI.swift +++ b/Pulse/PullRequestAPI.swift @@ -8,7 +8,6 @@ struct PullRequest: Identifiable { let url: String let mergeable: Github.MergeableState // NOTE: It might use let commitUrl: String - let comment: String? let commentAuthor: String? let draft: Bool let approvedCount: Int @@ -114,7 +113,6 @@ struct PullRequestAPI { url: asPull.url, mergeable: asPull.mergeable.value ?? Github.MergeableState.unknown, commitUrl: commit.url, - comment: asPull.comments.nodes?.first??.bodyText, commentAuthor: asPull.comments.nodes?.first??.author?.login, draft: asPull.isDraft, approvedCount: asPull.reviews?.totalCount ?? 0,