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 <noreply@anthropic.com>
This commit is contained in:
ryo-ma 2026-03-15 18:54:55 +09:00
parent 5bbd8f6863
commit bff648c999
2 changed files with 7 additions and 6 deletions

View file

@ -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
}

View file

@ -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;