From c0480aceff572fe9c6a09112ad8c255a3341b165 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Tue, 3 Dec 2024 18:15:16 +0100 Subject: [PATCH] Remove `... on Bot` in favor of `Node` and `Actor` (#6506) Fixes #6441 --- src/github/queriesShared.gql | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/github/queriesShared.gql b/src/github/queriesShared.gql index d2c6e2a6c9..768081ddac 100644 --- a/src/github/queriesShared.gql +++ b/src/github/queriesShared.gql @@ -349,19 +349,18 @@ query GetReviewRequests($owner: String!, $name: String!, $number: Int!) { reviewRequests(first: 100) { nodes { requestedReviewer { - ... on User { + ... on Actor { login avatarUrl + } + ... on Node { id + } + ... on User { url email name } - ... on Bot { - id - login - avatarUrl - } } } } @@ -380,16 +379,14 @@ fragment ReviewComment on PullRequestReviewComment { login avatarUrl url + ... on Node { + id + } ... on User { email - id } ... on Organization { email - id - } - ... on Bot { - id } } path