diff --git a/plugins/github/github-core/resources/graphql/fragment/pullRequestInfo.graphql b/plugins/github/github-core/resources/graphql/fragment/pullRequestInfo.graphql index 6cf33678154d..8fdb4d8c5d9d 100644 --- a/plugins/github/github-core/resources/graphql/fragment/pullRequestInfo.graphql +++ b/plugins/github/github-core/resources/graphql/fragment/pullRequestInfo.graphql @@ -10,11 +10,6 @@ fragment pullRequestInfo on PullRequest { reviewDecision - baseRef { - refUpdateRule { - ...refUpdateRule - } - } baseRefName baseRefOid baseRepository { diff --git a/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequest.kt b/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequest.kt index 1542b38d60de..cf918e663b63 100644 --- a/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequest.kt +++ b/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequest.kt @@ -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 diff --git a/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequestMergeabilityData.kt b/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequestMergeabilityData.kt index 0d3cb87b1e4a..b6fa9c17ba64 100644 --- a/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequestMergeabilityData.kt +++ b/plugins/github/github-core/src/org/jetbrains/plugins/github/api/data/pullrequest/GHPullRequestMergeabilityData.kt @@ -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 = listOf() ) : GraphQLConnectionDTO(pageInfo, nodes) + + data class BaseRef(val refUpdateRule: GHRefUpdateRule?) } \ No newline at end of file