Open-source contributions: collect merged PRs into 1,000★ repos (nightly)
メンテナーはふだん 1 日以内に返信
評価
この issue はまだ評価されていません。
説明
Summary
We want public profiles to show where a member has had pull requests merged ("Merged into PyTorch, TensorFlow..."). This issue is the data side only; the profile section and the README badge are separate issues that build on it.
What counts as an open-source contribution
- A merged pull request (not just opened) into a public repository the user does not own.
- The repository has at least 1,000 stars at sync time. This is meant to be something to brag about, so small or personal repos don't count.
- PRs the author merged themselves (
merged_byis the author) don't count. - Grouped by the repository owner (an organisation like
pytorch, or a person). The logo is the owner's GitHub avatar (https://avatars.githubusercontent.com/<owner>), so no logo files are hosted. - Members only (people signed up on DevTrack). Guest profiles never show it and never trigger GitHub calls.
Expected outcome
- Table (new idempotent migration in
supabase/migrations/, pluspnpm test:db): one row per user and repository withuser_id,owner,owner_type(Organization/User),repo,stars,merged_prs,first_merged_at,last_merged_at,synced_at. RLS like the other per-user tables (service role writes, public read only through the API). - Sync in the nightly job (
src/app/api/cron/gamification/route.ts→src/lib/gamification/persistence.ts), members only:- GitHub search
type:pr is:merged author:<login> -user:<login>(the same querysrc/lib/goals-sync.tsalready uses for the open-source goal), paginated, capped at 1,000 results. - One batched GraphQL call for the repos found: stars, owner type, archived/fork, and each PR's
mergedByto drop self-merges. - Keep repos with 1,000+ stars, replace the user's rows in one go.
- Budget: about 2-3 GitHub requests per member per night. Use the shared GitHub client and its rate-limit handling; one user failing must not stop the job.
- GitHub search
- Read API:
GET /api/users/[login]/open-sourcereturning the owners (avatar URL, name, type), their repos, merged PR counts and stars, sorted by stars. Cache it like the other public profile data. Returns an empty list for guests and for members who hid the section (see the profile issue).
Acceptance criteria
- Migration is idempotent and covered by
pnpm test:db - Unit tests for the filtering: below 1,000 stars, own repos, self-merged PRs, forks/archived handled; grouping by owner
- Route tests for the API (member, guest, hidden)
- No GitHub calls on a profile view: the data only comes from the table
- 主要言語
- TypeScript
- スター
- 246
- フォーク
- 436
- 平均マージ
- 9時間 33分
- マージ済み PR(30日)
- 213
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Priyanshu-byte-coder/devtrack のほかの issue
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Priyanshu-byte-coder/devtrack#4067 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Priyanshu-byte-coder/devtrack#4066 ·
メンテナーはふだん 1 日以内に返信
-
Webhook manager: replace the browser confirm() dialogs with ConfirmModal対応中かも @Nandaninaulaa が 4 日前に担当しました。 オープンgood first issue level 1 level:beginner status:assigned type:design
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
Priyanshu-byte-coder/devtrack#3889 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Goals form: square arcade buttons for recurrence, Create goal and Refresh対応中かも @KartikeyG-world が 4 日前に担当しました。 オープンgood first issue level 1 level:beginner status:assigned type:design
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
Priyanshu-byte-coder/devtrack#3877 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Goals: the error banner and the "No goals yet" hint show at the same time対応中かも @KartikeyG-world が 4 日前に担当しました。 オープンgood first issue level 1 level:beginner status:assigned type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Priyanshu-byte-coder/devtrack#3872 · コメント 6 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
Priyanshu-byte-coder/devtrack の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
makecindy/cindy#15342 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
kwitsch/claude-code-plugin-tooling#219 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
no-repo-link tool-submission
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
BraveOPotato/NoSignups#2618 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100