Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(github): teams with access show in the reviewer picker #35126

Openipanasenko(GitHub profile, opens in a new tab)wants to merge 12 commits intomain fromrefs/pull/35126/headopened View on GitHub

Showing 6 changed files with 109 additions and 76 deletions (loading 4).

x
0 of 6 viewed, 6 left
89 additions and 69 deletionspackages/source-control-github/src/server/GitHubPullRequestApi.test.tsModified
View file
@@ -4735,42 +4735,70 @@
- it.effect("reads who may review and who already has in one request", () =>
- Effect.gen(function* () {
- mockedExecute.mockReturnValue(
- Effect.succeed(
- output(
- encodeJson({
- data: {
- repository: {
- assignableUsers: {
- pageInfo: { hasNextPage: false },
- nodes: ["bilal", "octocat", "hubot"].map((login) => ({
- login,
- name: null,
- avatarUrl: `https://avatars/${login}`,
- })),
- },
- pullRequest: {
- author: { __typename: "User", login: "bilal" },
- reviewRequests: {
- nodes: [
- {
- requestedReviewer: {
- __typename: "User",
- login: "octocat",
- name: null,
- avatarUrl: "https://avatars/octocat",