From bff648c9991b2c212c7e1e416536eb26ac08c617 Mon Sep 17 00:00:00 2001 From: ryo-ma Date: Sun, 15 Mar 2026 18:54:55 +0900 Subject: [PATCH] Reduce languages per repo from 3 to 2 to lower GraphQL query complexity Also applies deno fmt formatting fixes. Co-Authored-By: Claude Opus 4.6 --- src/Schemas/index.ts | 4 ++-- src/user_info.ts | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Schemas/index.ts b/src/Schemas/index.ts index 4872efa..8e09dbb 100644 --- a/src/Schemas/index.ts +++ b/src/Schemas/index.ts @@ -46,7 +46,7 @@ export const queryUserRepository = ` repositories(first: 50, ownerAffiliations: OWNER, orderBy: {direction: DESC, field: STARGAZERS}) { totalCount nodes { - languages(first: 3, orderBy: {direction:DESC, field: SIZE}) { + languages(first: 2, orderBy: {direction:DESC, field: SIZE}) { nodes { name } @@ -88,7 +88,7 @@ export const queryUserAll = ` repositories(first: 50, ownerAffiliations: OWNER, orderBy: {direction: DESC, field: STARGAZERS}) { totalCount nodes { - languages(first: 3, orderBy: {direction:DESC, field: SIZE}) { + languages(first: 2, orderBy: {direction:DESC, field: SIZE}) { nodes { name } diff --git a/src/user_info.ts b/src/user_info.ts index dd8ce46..c5b986e 100644 --- a/src/user_info.ts +++ b/src/user_info.ts @@ -42,10 +42,11 @@ export type GitHubUserActivity = { }; }; -export type GitHubUserAll = GitHubUserActivity & - GitHubUserIssue & - GitHubUserPullRequest & - GitHubUserRepository; +export type GitHubUserAll = + & GitHubUserActivity + & GitHubUserIssue + & GitHubUserPullRequest + & GitHubUserRepository; export class UserInfo { public readonly totalCommits: number; public readonly totalFollowers: number;