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>
* fix: correct content-type for HTML pages and allow password-less redis
Set Content-Type to 'text/html' instead of 'text' for index and
error page responses, since both return HTML content.
Also change redis username/password fallback from empty string to
undefined so that the driver skips AUTH when no credentials are
configured. An empty string causes AUTH to be sent which fails on
servers with no password set.
Fixes#387, fixes#388
* fix: revert unintended formatting change to pass deno fmt check
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* 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
* First step to developing a feature to exclude speicifc trophies by title
* Added support for exclusion by title
* Ran deno lint, deno format and deno test found in CONTRIBUTING
* Documented the latest addition in the README
* Updated README
* chore: improving homepage styling
More pleasant stylization and ease of generating your trophies
* fix: (no-inferrable-types) inferrable types are not allowed
Update error_page.ts
* Update error_page.ts
* chore: retries improvements
* chore: improvements on retries
* chore: improvements on retries
* chore: add unit test
* chore: format
* chore: format
* chore: format
* fix: remove console
Adds more text to the error to hopefully inform users that they failed
to provide a proper URL, and not that the site is broken.
Error changed to generic 400 since the problem is that the user didn't
make a good request, not that the page itself is missing.