[gh] Remove unused data from pullRequestInfo fragment

GitOrigin-RevId: cbda6a4959dddb311cedac4647765d0f508eb9e9
This commit is contained in:
Chris Lemaire
2025-10-21 18:51:10 +00:00
committed by intellij-monorepo-bot
parent 31f3fd175a
commit f61fd6c1cc
3 changed files with 2 additions and 8 deletions
@@ -10,11 +10,6 @@ fragment pullRequestInfo on PullRequest {
reviewDecision
baseRef {
refUpdateRule {
...refUpdateRule
}
}
baseRefName
baseRefOid
baseRepository {
@@ -40,8 +40,6 @@ class GHPullRequest(id: String,
assignees, labels, reviewRequests, reviewThreads,
reviews, mergeable, viewerCanUpdate, viewerCanReact, viewerDidAuthor, reactions) {
data class BaseRef(val refUpdateRule: GHRefUpdateRule?)
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is GHPullRequest) return false
@@ -6,7 +6,6 @@ import com.intellij.collaboration.api.dto.GraphQLConnectionDTO
import com.intellij.collaboration.api.dto.GraphQLCursorPageInfoDTO
import com.intellij.collaboration.api.dto.GraphQLFragment
import org.jetbrains.plugins.github.api.data.GHRefUpdateRule
import org.jetbrains.plugins.github.api.data.pullrequest.GHPullRequest.BaseRef
@GraphQLFragment("/graphql/fragment/pullRequestMergeability.graphql")
data class GHPullRequestMergeabilityData(
@@ -23,4 +22,6 @@ data class GHPullRequestMergeabilityData(
pageInfo: GraphQLCursorPageInfoDTO,
nodes: List<GHPullRequestCommitWithCheckStatuses> = listOf()
) : GraphQLConnectionDTO<GHPullRequestCommitWithCheckStatuses>(pageInfo, nodes)
data class BaseRef(val refUpdateRule: GHRefUpdateRule?)
}