[github] add missing subtypes of GHPullRequestRequestedReviewer

#IJPL-79734 Fixed
#IJPL-172070 Fixed

GitOrigin-RevId: 66b4ad29567426bfa220fb0eb36830d1a4fa8ba3
This commit is contained in:
Ivan Semenov
2024-12-02 13:26:23 +00:00
committed by intellij-monorepo-bot
parent f06169e3a7
commit f4d1bc8bcd
3 changed files with 24 additions and 12 deletions
@@ -1,11 +1,15 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.github.api.data
class GHBot(id: String,
override val login: String,
override val url: String,
override val avatarUrl: String,
val name: String?)
: GHNode(id), GHActor {
import org.jetbrains.plugins.github.api.data.pullrequest.GHPullRequestRequestedReviewer
class GHBot(
id: String,
override val login: String,
override val url: String,
override val avatarUrl: String,
override val name: String?,
) : GHNode(id), GHActor, GHPullRequestRequestedReviewer {
override val shortName: String = login
override fun getPresentableName(): String = name ?: login
}
@@ -1,11 +1,15 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.github.api.data
class GHMannequin(id: String,
override val login: String,
override val url: String,
override val avatarUrl: String,
val name: String?)
: GHNode(id), GHActor {
import org.jetbrains.plugins.github.api.data.pullrequest.GHPullRequestRequestedReviewer
class GHMannequin(
id: String,
override val login: String,
override val url: String,
override val avatarUrl: String,
override val name: String?,
) : GHNode(id), GHActor, GHPullRequestRequestedReviewer {
override val shortName: String = login
override fun getPresentableName(): String = name ?: login
}
@@ -5,6 +5,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo
import com.intellij.collaboration.api.dto.GraphQLFragment
import com.intellij.openapi.util.NlsSafe
import org.jetbrains.plugins.github.api.data.GHBot
import org.jetbrains.plugins.github.api.data.GHMannequin
import org.jetbrains.plugins.github.api.data.GHUser
@GraphQLFragment("/graphql/fragment/pullRequestReviewerInfo.graphql")
@@ -12,6 +14,8 @@ import org.jetbrains.plugins.github.api.data.GHUser
defaultImpl = GHPullRequestRequestedReviewer.Unknown::class)
@JsonSubTypes(
JsonSubTypes.Type(name = "User", value = GHUser::class),
JsonSubTypes.Type(name = "Bot", value = GHBot::class),
JsonSubTypes.Type(name = "Mannequin", value = GHMannequin::class),
JsonSubTypes.Type(name = "Team", value = GHTeam::class)
)
interface GHPullRequestRequestedReviewer {