mirror of
https://github.com/reiyua/github-profile-trophy-reiyua-mirror.git
synced 2026-11-17 06:02:09 +11:00
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:
parent
5bbd8f6863
commit
bff648c999
2 changed files with 7 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue