# Github Badges via Discourse ID?

**URL:** https://meta.discourse.org/t/github-badges-via-discourse-id/390634
**Category:** Site feedback
**Tags:** github, discourse-id
**Created:** [December 7, 2025, 4:21pm UTC](https://meta.discourse.org/t/github-badges-via-discourse-id/390634 "2025-12-07T16:21:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)
#### Post date: [December 7, 2025, 4:21pm UTC](https://meta.discourse.org/t/github-badges-via-discourse-id/390634/1 "2025-12-07T16:21:19Z")

</div>

I assume meta is using the [Github Plugin](https://meta.discourse.org/t/discourse-github/99895) for Contributor badges. I just connected github to my Discourse ID, but would this even work with Discourse ID?

> [@Github Badges are not working. Its hard to see if I do something wrong or if the plugin is not working](https://meta.discourse.org/t/github-badges-are-not-working-its-hard-to-see-if-i-do-something-wrong-or-if-the-plugin-is-not-working/148036/4):
>
> Users are found based on the email address of the Github commit. For most cases, this will be the user’s email address. For users who have configured git to use the Github no-reply email address (`<username>@users.noreply.github.com`), the plugin attempts to find the user based on the username part of that email address. It does this by searching the Discourse `GithubUserInfo` table for a username match. Users will only be found in this way if they have previously logged into Discourse via Github.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [December 7, 2025, 4:58pm UTC](https://meta.discourse.org/t/github-badges-via-discourse-id/390634/2 "2025-12-07T16:58:10Z")

</div>

@zogstrip maybe something for you to comment on, noodle on, given your recent tinkering with both Discourse ID and GitHub stuff.

I’m skimming [the plugin docs](https://meta.discourse.org/t/discourse-github/99895) and [the specs here](https://github.com/discourse/discourse/blob/main/plugins/discourse-github/spec/lib/github_badges_spec.rb) and it isn’t clear to me how we associate users in Discourse to users in GitHub. Do they need to have their user account on Discourse linked directly to GitHub? Or is it based on email address? (Or something else)?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 7, 2025, 5:27pm UTC](https://meta.discourse.org/t/github-badges-via-discourse-id/390634/3 "2025-12-07T17:27:06Z")

</div>

Given that the primary method is email match, it will work just fine.

Contributors using different emails on GitHub than here can reach out to us and ask for manual badge assignments.

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [December 7, 2025, 5:36pm UTC](https://meta.discourse.org/t/github-badges-via-discourse-id/390634/4 "2025-12-07T17:36:44Z")

</div>

> [@Falco](#):
>
> Given that the primary method is email match, it will work just fine.

Ah, cool. That’s the part I wasn’t clear about. Thanks for clarifying.

If I understand correctly now, directly associated accounts are only needed to automatically credit users that are using a different (or private) email address for commits.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [December 8, 2025, 3:18pm UTC](https://meta.discourse.org/t/github-badges-via-discourse-id/390634/5 "2025-12-08T15:18:33Z")

</div>

Falco is right, this should work. Note though that the only repository configured to grant Github badges here on meta is the main app repo (discourse/discourse). And, as Falco explained, the email address between your account here and your Github account need to match. (For example, I don’t have the badge because my email on my account here is different from my email for the Github account.)
