GitHub achievements are the small badges in the Achievements section of your profile. GitHub introduced them in 2021 and expanded them in June 2022. Some badges have tiers: after the first badge, GitHub adds a label x2 (bronze), x3 (silver) or x4 (gold) as you reach higher counts.
GitHub doesn’t publish the exact rules. The thresholds below are community-documented: people compared their activity with their badges (see Schweinepriester/github-profile-achievements and drknzz/GitHub-Achievements). They have been stable for a long time, but GitHub can change them at any time.
Check your own numbers:
gh-achievements progress <username>shows your count, estimated tier and how many more you need for every achievement below.gh-achievements why <username> <achievement>explains a badge that didn’t unlock. See the README.
| Achievement | How to earn it | Default | x2 (Bronze) | x3 (Silver) | x4 (Gold) |
|---|---|---|---|---|---|
| Pull Shark | Pull requests you opened that were merged | 2 | 16 | 128 | 1024 |
| Pair Extraordinaire | Co-authored commits in merged pull requests | 1 | 10 | 24 | 48 |
| Galaxy Brain | Answers accepted in Q&A discussions | 2 | 8 | 16 | 32 |
| Starstruck | Stars on one repository you own | 16 | 128 | 512 | 4096 |
| Quickdraw | Close an issue or PR within 5 minutes of opening it | 1 | - | - | - |
| YOLO | Merge your own PR without a code review | 1 | - | - | - |
| Public Sponsor | Sponsor someone through GitHub Sponsors | 1 | - | - | - |
| Arctic Code Vault Contributor | 2020 GitHub Archive Program | no longer earnable | |||
| Mars 2020 Contributor | Mars 2020 Helicopter Mission | no longer earnable |
How to earn it: open pull requests that get merged.
| Tier | Merged pull requests |
|---|---|
| Default | 2 |
| x2 (Bronze) | 16 |
| x3 (Silver) | 128 |
| x4 (Gold) | 1024 |
What counts: pull requests that you opened and that someone (you or a maintainer) merged. The repository can be yours or someone else’s.
Common reasons it doesn’t unlock or level up:
gh-achievements why <you> pull-shark shows merged, closed and open separately.How to earn it: be named as a co-author on a commit in a merged pull request.
| Tier | Co-authored merged pull requests |
|---|---|
| Default | 1 |
| x2 (Bronze) | 10 |
| x3 (Silver) | 24 |
| x4 (Gold) | 48 |
Co-authors are added with a trailer at the end of the commit message, after a blank line (GitHub Docs: creating a commit with multiple authors):
Add the export command
Co-authored-by: Ada Lovelace <12345+ada@users.noreply.github.com>
Who gets the badge: the people named in Co-authored-by:. The PR author doesn’t earn Pair Extraordinaire from their own PR just by adding co-authors. This is the most common surprise.
Which email to use: the email must be one that is linked to the co-author’s GitHub account. The safest choice is their noreply address, <id>+<username>@users.noreply.github.com. You can find your own on the email settings page when “Keep my email addresses private” is on, or build it from your numeric id at https://api.github.com/users/<username>.
Common reasons it doesn’t unlock:
gh-achievements why <you> pair lists commits you authored with co-authors, so you can see where your credit went.Co-authored-by: lines, the credit is gone.Co-authored-by: Name <email>. Typos like Co-author: or a missing < > break it.How to earn it: answer questions in GitHub Discussions and get your answer marked as the answer.
| Tier | Accepted answers |
|---|---|
| Default | 2 |
| x2 (Bronze) | 8 |
| x3 (Silver) | 16 |
| x4 (Gold) | 32 |
What counts: a discussion comment that the person who asked, or a maintainer, marked with Mark as answer. That’s only possible in categories that accept answers, usually called Q&A.
Common reasons it doesn’t unlock:
gh-achievements leaves them out.How to earn it: own a repository that many people star.
| Tier | Stars on one repository |
|---|---|
| Default | 16 |
| x2 (Bronze) | 128 |
| x3 (Silver) | 512 |
| x4 (Gold) | 4096 |
What counts: the stars on a single repository. It isn’t the sum of stars across all your repositories. gh-achievements checks the non-fork repositories owned by your personal account.
Common reasons it doesn’t unlock:
How to earn it: close an issue or pull request within 5 minutes of opening it. One tier.
What counts: an issue or PR that was closed within 5 minutes. Community reports say a PR merged within 5 minutes counts too, since merging closes it.
Common reasons it doesn’t unlock:
gh-achievements why <you> quickdraw lists recent issues and PRs that were closed within 5 minutes, with the exact time it took.
How to earn it: merge your own pull request without a code review. One tier.
Common reasons it doesn’t unlock:
gh-achievements why <you> yolo lists your recent PRs that you merged yourself with zero reviews.
How to earn it: sponsor a developer or organization through GitHub Sponsors. One tier.
Notes:
0 even if you once sponsored someone.These were awarded once and can no longer be earned:
Often a few hours, but one to several days is common in community reports. If gh-achievements says you qualified only recently, wait a few days before assuming something is wrong. If a week has passed, run gh-achievements why <you> <achievement> to look for one of the problems above.
GitHub doesn’t document this. In our own test account, the public merged-PR count (14) was below the Pull Shark x2 threshold (16), while the profile showed x2; with a token that can read private repositories, the count was 18. That suggests private merged PRs count, but treat it as an observation, not a rule.
To include private activity in gh-achievements, use a token that can read your private repositories (for example gh auth token, or a personal access token in the GitHub Action). The tool hides private repository names in its output unless you pass --show-private.
According to GitHub Docs:
Badges are fun because they reflect real work. Creating throwaway issues, empty pull requests or fake co-authors only to unlock them adds noise for maintainers, and GitHub has warned that spam created to earn achievements can lead to content removal or account restrictions. gh-achievements only reads and explains your data; it never creates activity.
Found a threshold that changed, or a reason we missed? Open an issue.