catalog

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package catalog is the single source of truth for every known GitHub achievement.

GitHub publishes no official list any more. This one follows the community lists (Schweinepriester/github-profile-achievements, drknzz/GitHub-Achievements) and was checked against live profiles. A badge GitHub adds later still shows up in the CLI, because earned badges are read from the profile, not from this table.

Package catalog provides the definitive catalog of all known GitHub achievements, tier progression rules, and highlight definitions.

Index

Constants

View Source
const LastVerified = "2026-10-17"

LastVerified is the date the catalog was last checked against live profiles.

Variables

View Source
var Achievements = []Achievement{
	{
		Slug: "pull-shark", Name: "Pull Shark", Kind: Earnable,
		Tiers: []int{2, 16, 128, 1024}, Unit: "merged pull requests", Counter: CounterMergedPRs,
		HowToEarn: "Open pull requests that get merged",
		Details: "Pull Shark counts pull requests you opened that were merged. " +
			"GitHub's own history for the badge names the 2nd, 16th, 128th and 1024th merged pull request.",
		FAQ: []QA{
			{"How many merged pull requests do you need for Pull Shark?",
				"2 for the base badge, 16 for x2 (bronze), 128 for x3 (silver) and 1024 for x4 (gold)."},
			{"Do pull requests in private repositories count towards Pull Shark?",
				"Yes. GitHub's Pull Shark history lists milestones in private repositories as \"inaccessible\", so they are counted even though visitors cannot see them."},
		},
	},
	{
		Slug: "starstruck", Name: "Starstruck", Kind: Earnable,
		Tiers: []int{16, 128, 512, 4096}, Unit: "stars on one repository", Counter: CounterStars,
		HowToEarn: "Create a repository that gets stars",
		Details: "Starstruck counts the stars of a repository you created. " +
			"GitHub's history for the badge names the repository that reached each threshold.",
		FAQ: []QA{
			{"How many stars do you need for Starstruck?",
				"One repository with 16 stars for the base badge, 128 for x2, 512 for x3 and 4096 for x4."},
			{"Do stars across several repositories add up for Starstruck?",
				"No. The thresholds apply to a single repository; GitHub's history names one repository per threshold."},
		},
	},
	{
		Slug: "pair-extraordinaire", Name: "Pair Extraordinaire", Kind: Earnable,
		Tiers: []int{1, 10, 24, 48}, Unit: "coauthored merged pull requests", Counter: CounterNone,
		NoCounterReason: "GitHub's counting rule is not public: tier only, no counter",
		HowToEarn:       "Coauthor commits on merged pull requests",
		Details: "Pair Extraordinaire is awarded for coauthored commits on merged pull requests. " +
			"GitHub's history for the badge lists the pull request and the coauthors for each threshold, " +
			"including pull requests opened by someone else that list you as a coauthor.",
		FAQ: []QA{
			{"How many coauthored pull requests do you need for Pair Extraordinaire?",
				"1 for the base badge, 10 for x2, 24 for x3 and 48 for x4."},
			{"Why does GitVerse show no counter for Pair Extraordinaire?",
				"GitHub's counting rule is not public. On a real account, 60 merged pull requests had commits with a Co-authored-by trailer while GitHub's tier said 10 to 23, so any count from the API would be wrong. The tool shows the official tier only."},
		},
	},
	{
		Slug: "galaxy-brain", Name: "Galaxy Brain", Kind: Earnable,
		Tiers: []int{2, 8, 16, 32}, Unit: "accepted answers", Counter: CounterAnswers,
		HowToEarn: "Have discussion answers accepted",
		Details: "Galaxy Brain counts your GitHub Discussions answers that were marked as the accepted answer. " +
			"Since 2024-02-06 answers in GitHub's own Community Discussions (github.com/orgs/community) no longer count.",
		FAQ: []QA{
			{"How many accepted answers do you need for Galaxy Brain?",
				"2 for the base badge, 8 for x2, 16 for x3 and 32 for x4."},
			{"Do answers in GitHub Community Discussions count for Galaxy Brain?",
				"Not since 2024-02-06, when GitHub stopped awarding achievements there to counter spam. Answers in other repositories' discussions still count."},
		},
	},
	{
		Slug: "quickdraw", Name: "Quickdraw", Kind: Earnable, Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "Close an issue or pull request within 5 minutes of opening it",
		Details:   "Quickdraw (\"Gitty up!\") is a one-time badge for closing an issue or pull request within 5 minutes of opening it.",
	},
	{
		Slug: "yolo", Name: "YOLO", Kind: Earnable, Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "Merge a pull request without a review",
		Details:   "YOLO (\"You want it? You merge it.\") is a one-time badge for merging a pull request without a code review.",
	},
	{
		Slug: "public-sponsor", Name: "Public Sponsor", Kind: Earnable, Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "Sponsor someone publicly through GitHub Sponsors",
		Details:   "Public Sponsor is a one-time badge for sponsoring an open source contributor or organization through GitHub Sponsors with a public sponsorship. Private sponsorships do not count.",
	},
	{
		Slug: "finishing-touch", Name: "Finishing Touch", Kind: Earnable,
		Tiers: []int{1, 4, 16, 32}, Unit: "merged UI quality pull requests", Counter: CounterNone,
		NoCounterReason: "GitHub decides which pull requests count as UI quality: tier only, no counter",
		HowToEarn:       "Get pull requests that improve GitHub's UI quality merged",
		Details: "Finishing Touch counts merged pull requests that GitHub classed as improving the quality of its own user interface. " +
			"GitHub's history for the badge names the 1st, 4th, 16th and 32nd UI quality pull request merged.",
		FAQ: []QA{
			{"How many pull requests do you need for Finishing Touch?",
				"1 merged UI quality pull request for the base badge, 4 for x2, 16 for x3 and 32 for x4."},
		},
	},
	{
		Slug: "heart-on-your-sleeve", Name: "Heart On Your Sleeve", Kind: Disabled,
		Tiers: []int{0, 16, 128, 0}, Unit: "❤️ reactions", Counter: CounterNone,
		HowToEarn: "React to something on GitHub with a ❤️ emoji",
		Details:   "Heart On Your Sleeve was tested by GitHub and is switched off: nobody can earn it now. The known thresholds are 16 ❤️ reactions for x2 and 128 for x3.",
	},
	{
		Slug: "open-sourcerer", Name: "Open Sourcerer", Kind: Disabled,
		Tiers: []int{0, 8, 16, 64}, Unit: "merged open source pull requests", Counter: CounterNone,
		HowToEarn: "Have pull requests merged in several public repositories",
		Details:   "Open Sourcerer was tested by GitHub and is switched off: nobody can earn it now. The known thresholds are 8 merged open source pull requests for x2, 16 for x3 and 64 for x4.",
	},
	{
		Slug: "arctic-code-vault-contributor", Name: "Arctic Code Vault Contributor", Kind: Retired,
		Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "Code in a repository of the 2020 GitHub Archive Program",
		Details:   "Arctic Code Vault Contributor went to people who contributed code to repositories stored in the 2020 GitHub Archive Program. It can no longer be earned.",
	},
	{
		Slug: "mars-2020-contributor", Name: "Mars 2020 Contributor", Kind: Retired,
		Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "Code in a repository used by the Mars 2020 Helicopter Mission",
		Details:   "Mars 2020 Contributor went to people who contributed code to repositories used in the Mars 2020 Helicopter Mission. It can no longer be earned.",
	},
	{
		Slug: "proxima-pioneer", Name: "Proxima Pioneer", Kind: Internal, Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "GitHub staff: contributed to the Proxima proof of concept",
		Details:   "Proxima Pioneer is an internal badge for GitHub staff who contributed to the Proxima proof of concept. It cannot be earned through normal activity.",
	},
	{
		Slug: "proxima-staffshipper", Name: "Proxima Staffshipper", Kind: Internal, Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "GitHub staff: shipped the Proxima staffship instance",
		Details:   "Proxima Staffshipper is an internal badge for GitHub staff who shipped the Proxima staffship instance. It cannot be earned through normal activity.",
	},
	{
		Slug: "proxima-staffuser", Name: "Proxima Staffuser", Kind: Internal, Tiers: []int{1}, Counter: CounterNone,
		HowToEarn: "GitHub staff: your team was onboarded to Proxima",
		Details:   "Proxima Staffuser is an internal badge for GitHub staff whose team was onboarded to Proxima. It cannot be earned through normal activity.",
	},
}

Achievements lists every known badge, in display order.

View Source
var Highlights = []Highlight{
	{Name: "Developer Program Member", GraphQLField: "isDeveloperProgramMember", HowToEarn: "Register for the GitHub Developer Program"},
	{Name: "Security Bug Bounty Hunter", GraphQLField: "isBountyHunter", HowToEarn: "Report a valid vulnerability through GitHub Security Bug Bounty"},
	{Name: "GitHub Campus Expert", GraphQLField: "isCampusExpert", HowToEarn: "Join the GitHub Campus Expert program"},
	{Name: "GitHub Star", GraphQLField: "isGitHubStar", HowToEarn: "Be selected for the GitHub Stars program"},
	{Name: "Pro", HowToEarn: "Subscribe to GitHub Pro"},
	{Name: "Security advisory credit", HowToEarn: "Have a security advisory you submitted accepted into the GitHub Advisory Database"},
}

Highlights lists the profile highlights.

View Source
var Images = map[string][]string{
	"heart-on-your-sleeve": {
		communityArt + "heart-on-your-sleeve-default.png",
		communityArt + "tiers/heart-on-your-sleeve-bronze.png",
		communityArt + "tiers/heart-on-your-sleeve-silver.png",
		communityArt + "tiers/heart-on-your-sleeve-gold.png",
	},
	"open-sourcerer": {
		communityArt + "open-sourcerer-default.png",
		communityArt + "tiers/open-sourcerer-bronze.png",
		communityArt + "tiers/open-sourcerer-silver.png",
		communityArt + "tiers/open-sourcerer-gold.png",
	},
	"pull-shark": {
		"https://github.githubassets.com/assets/pull-shark-default-498c279a747d.png",
		"https://github.githubassets.com/assets/pull-shark-bronze-a37accb528d1.png",
		"https://github.githubassets.com/assets/pull-shark-silver-0643f87ac9fd.png",
		"https://github.githubassets.com/assets/pull-shark-gold-90985540b385.png",
	},
	"starstruck": {
		"https://github.githubassets.com/assets/starstruck-default-b6610abad518.png",
		"https://github.githubassets.com/assets/starstruck-bronze-b71ec4d7766a.png",
		"https://github.githubassets.com/assets/starstruck-silver-275c101223c0.png",
		"https://github.githubassets.com/assets/starstruck-gold-a35e077693cc.png",
	},
	"pair-extraordinaire": {
		"https://github.githubassets.com/assets/pair-extraordinaire-default-579438a20e01.png",
		"https://github.githubassets.com/assets/pair-extraordinaire-bronze-797214f41e7e.png",
		"https://github.githubassets.com/assets/pair-extraordinaire-silver-a0b2b472348c.png",
		"https://github.githubassets.com/assets/pair-extraordinaire-gold-5335a3b8ae7d.png",
	},
	"galaxy-brain": {
		"https://github.githubassets.com/assets/galaxy-brain-default-847262c21056.png",
		"https://github.githubassets.com/assets/galaxy-brain-bronze-da3c4829fd22.png",
		"https://github.githubassets.com/assets/galaxy-brain-silver-2ce8da282a85.png",
		"https://github.githubassets.com/assets/galaxy-brain-gold-9c2c03fd1acf.png",
	},
	"finishing-touch": {
		"https://github.githubassets.com/assets/finishing-touch-default-764b3a996d62.png",
		"https://github.githubassets.com/assets/finishing-touch-bronze-7c49185628f3.png",
		"https://github.githubassets.com/assets/finishing-touch-silver-75ab9a5c22ba.png",
		"https://github.githubassets.com/assets/finishing-touch-gold-e19e1fcbfee2.png",
	},
	"quickdraw":                     {"https://github.githubassets.com/assets/quickdraw-default-39c6aec8ff89.png"},
	"yolo":                          {"https://github.githubassets.com/assets/yolo-default-be0bbff04951.png"},
	"public-sponsor":                {"https://github.githubassets.com/assets/public-sponsor-default-9fa68986b057.png"},
	"arctic-code-vault-contributor": {"https://github.githubassets.com/assets/arctic-code-vault-contributor-default-df8d74122a06.png"},
	"mars-2020-contributor":         {"https://github.githubassets.com/assets/mars-2020-contributor-default-c9cad8495acf.png"},
	"proxima-pioneer":               {"https://github.githubassets.com/assets/proxima-pioneer-default-51cd4e4969d5.png"},
	"proxima-staffshipper":          {"https://github.githubassets.com/assets/proxima-staffshipper-default-84f658288021.png"},
	"proxima-staffuser":             {"https://github.githubassets.com/assets/proxima-staffuser-default-02bf6163ea31.png"},
}

Kinds is the display order of sections.

Functions

func Image

func Image(slug string, tier int) string

Image is the art for slug at tier (0 = not earned, shown as the default art).

func KindTitle

func KindTitle(k Kind) string

KindTitle is the section heading for a kind.

Types

type Achievement

type Achievement struct {
	Slug string `json:"slug"`
	Name string `json:"name"`
	Kind Kind   `json:"kind"`
	// Tiers are the counts for x1, x2, x3, x4. A single-tier badge has one entry.
	// 0 marks a threshold nobody has measured yet.
	Tiers     []int   `json:"tiers"`
	Unit      string  `json:"unit,omitempty"`
	HowToEarn string  `json:"howToEarn"`
	Details   string  `json:"details"`
	Counter   Counter `json:"counter"`
	// NoCounterReason says why a tiered badge shows its tier only.
	NoCounterReason string `json:"noCounterReason,omitempty"`
	FAQ             []QA   `json:"faq,omitempty"`
}

Achievement describes one badge.

func BySlug

func BySlug(slug string) (Achievement, bool)

BySlug returns the catalog entry for slug.

func (Achievement) IsTiered

func (a Achievement) IsTiered() bool

IsTiered reports whether the badge has more than one tier.

type Counter

type Counter string

Counter names how progress towards the next tier is measured.

const (
	CounterNone      Counter = "none"       // official tier only
	CounterMergedPRs Counter = "merged-prs" // Pull Shark
	CounterStars     Counter = "stars"      // Starstruck
	CounterAnswers   Counter = "answers"    // Galaxy Brain
)

type Highlight

type Highlight struct {
	Name string `json:"name"`
	// GraphQLField is the User field that reports it, when GitHub's API has one.
	GraphQLField string `json:"graphqlField,omitempty"`
	HowToEarn    string `json:"howToEarn"`
}

Highlight is a profile "Highlights" entry, shown under the achievements.

type Kind

type Kind string

Kind says whether an achievement can be earned today.

const (
	Earnable Kind = "earnable"
	Disabled Kind = "disabled" // tested by GitHub, switched off, not earnable now
	Retired  Kind = "retired"  // a one-off event that is over
	Internal Kind = "internal" // GitHub staff only
)

type QA

type QA struct {
	Q string `json:"q"`
	A string `json:"a"`
}

QA is one FAQ entry. Answers state only what is verified.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL