Commit graph

12 commits

Author SHA1 Message Date
luo jiyin
0dbd570fb3
fix: handle GitHub GraphQL star failures (#454)
* fix(request): fail on GraphQL errors instead of returning partial data

* fix(user-info,schemas): use stargazerCount instead of stargazers connection

* test(request): reject partial GraphQL responses

* fix(config): use PAT names for GitHub tokens

* fix: validate star counts and GraphQL failures

* revert: preserve GitHub token environment names
2026-07-25 08:59:47 +09:00
ryo-ma
bff648c999 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>
2026-03-15 18:54:55 +09:00
ryo-ma
5bbd8f6863 Consolidate 4 GraphQL queries into 1 and extend cache TTL to reduce Function Duration
Merged separate GitHub API queries (repository, activity, issue, pullRequest) into a single
combined GraphQL query to reduce HTTP roundtrips from 4 to 1 per cache miss. Also extended
file cache revalidation time from 1 hour to 6 hours to decrease function invocation frequency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 18:40:58 +09:00
Christina Ertural
d4b62d8895
Replaced createdAt with date of earliest repo for merged accounts (#377)
* Refactor UserInfo class to calculate duration based on earliest repository creation date

* Remove repository creation date from Repository type and adjust duration calculations to use user activity creation date

* Refactor UserInfo class to calculate duration based on earliest repository creation date

* Add repository name logging in UserInfo class for debugging

* Add logging for earliest repository creation date and duration calculation in UserInfo class

* Add repository name and creation date to user repository query

* Remove debug logging for repository name and earliest creation date in UserInfo class

* deno task format

* Refactor UserInfo class to optimize stargazers and languages aggregation, and streamline earliest repository date calculation

* undo last commit

* Refactor earliest repository date calculation for improved clarity and efficiency

* remove info that was used for debugging

* deno task format

* remove info that was used for debugging
2025-11-10 23:32:00 +09:00
Bhav Beri
0cc5b5cbc7
Added Account Duration/Experience Trophy (#203)
* Added Account Duration/Experience Trophy

* Minor Formatting Changes

* deno fmt correction

---------

Co-authored-by: Alexandro Castro <10711649+AlexcastroDev@users.noreply.github.com>
2023-10-03 23:58:45 +09:00
Alexandro Castro
495eba6a75
chore: types improvements (#226)
chore: types improvements

chore: types improvements
2023-09-30 14:49:18 +09:00
Bhav Beri
450f208327
Added Total Reviews Trophy (#200) 2023-05-19 00:03:15 +09:00
SmashedFrenzy16
0184955871
Add OG Account Trophy (#174)
* Update trophy.ts

* Update trophy_list.ts
2023-01-19 20:45:46 +09:00
ryo-ma
4dde40a743 Split issues to openIssues and closedIssues 2021-10-31 14:19:17 +09:00
ryo-ma
b2522282b3 Avoid timeout for the GitHub API 2021-10-31 14:08:25 +09:00
ryo-ma
3f7feb8208 Add Organizations trophy as a secret 2021-05-08 16:18:21 +09:00
ryo-ma
4d299d4678 Refactor the UserInfo class 2021-05-04 12:57:11 +09:00