Skip to content

[pull] main from O2sa:main#30

Merged
pull[bot] merged 14 commits into
YemenOpenSource:mainfrom
O2sa:main
Jul 22, 2026
Merged

[pull] main from O2sa:main#30
pull[bot] merged 14 commits into
YemenOpenSource:mainfrom
O2sa:main

Conversation

@pull

@pull pull Bot commented Jul 22, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ws-rush and others added 14 commits June 26, 2026 06:08
…QL schema

- Enhanced GitHub user data model to include `login` and `location` fields.
- Implemented a location detector to normalize user-provided locations into country slugs.
- Updated GraphQL queries to fetch the new `login` and `location` fields.
- Increased default pull request count from 250 to 300.
- Added a script to initialize the PostgreSQL database schema.
- Updated package dependencies, including adding `pg` for PostgreSQL support.
- Refactored error handling and improved code formatting for better readability.

Co-authored-by: Copilot <copilot@github.com>
- Updated country flag mapping to dynamically build from countries.json.
- Introduced leaderboard_calculation table to track country calculations.
- Added methods for seeding, starting, and finishing leaderboard calculations in DatabaseStore.
- Enhanced location detection to utilize updated country data structure.
- Improved localization for leaderboard features in Arabic and English.
- Implemented `calculate-next-country.ts` to automate leaderboard calculations.
- The script connects to the PostgreSQL database and processes the next country in line.
- Added logging for better tracking of the calculation process and results.

refactor: update GitHub data fetching in tests

- Renamed `fetchGitHubUserData` to `getUserData` for clarity.
- Adjusted tests to use the new `getUserData` mock function.
- Enhanced error handling in tests for GitHub API rate limits and resource limits.

chore: remove unused ContributionTotals type

- Deleted `ContributionTotals` type from GitHub types and related fixtures.
- Updated user score input to remove contributions from its structure.
feat: add location detection for GitHub users and initialize PostgreSQL schema
@pull pull Bot locked and limited conversation to collaborators Jul 22, 2026
@pull pull Bot added the ⤵️ pull label Jul 22, 2026
@pull
pull Bot merged commit d4f6025 into YemenOpenSource:main Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants