# Badges based on GitHub contributions!

**URL:** https://meta.discourse.org/t/badges-based-on-github-contributions/30922
**Category:** Support
**Created:** [July 9, 2015, 1:40pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922 "2015-07-09T13:40:20Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [July 9, 2015, 1:40pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/1 "2015-07-09T13:40:20Z")

</div>

Continuing the discussion from [Badges feedback](https://meta.discourse.org/t/badges-feedback/13789/52):

> [@radq](#):
>
> [GitHub - discourse/github\_badges: DEPRECATED: GitHub Badges plugin · GitHub](https://github.com/discourse/github_badges)

Is it a plugin? I need it for my community! How can I add it to my installation? Does it work currently?  
Thanks

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [July 9, 2015, 1:44pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/2 "2015-07-09T13:44:30Z")

</div>

It works, but only watches a single repository specified in the admin control panel, and IIRC it’s based on matching email address of the committer with the Discourse email address, rather than a GitHub ID.

It’s added in the standard plugin way of specifying the GitHub repository path in your Discourse configuration file.

I know from our side we’d love the ability to specify multiple repositories, as well as match on a custom user field of GitHub ID. 🙂

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [April 11, 2016, 12:43pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/3 "2016-04-11T12:43:00Z")

</div>

Any news? I’d like to add a badge based on this search on github:  
org:my\_org type:pr is:merged

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [April 11, 2016, 2:26pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/4 "2016-04-11T14:26:33Z")

</div>

Looks like the only commit to this plugin in the past year was from @zogstrip and didn’t really do much for functionality.

> <https://github.com/discourse/github_badges/commit/6957a97a7af0bd7c1fa1973f6ae38eaadef7f3e4>

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [April 11, 2016, 2:30pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/5 "2016-04-11T14:30:36Z")

</div>

I’d also highly encourage you to use a slightly different approach, as should any of your contributors use a different email in their git configuration when committing their changes, it will fail to recognize those contributions (or if they change their email address later on).

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [April 11, 2016, 2:32pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/6 "2016-04-11T14:32:08Z")

</div>

That is why we were hoping to be able to use a field for GitHub ID. 🙂

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [April 11, 2016, 3:00pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/7 "2016-04-11T15:00:01Z")

</div>

This plugin was merely done as an example of how to write a plugin for the badge system. Feel free to improve it 😉

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [October 16, 2018, 6:55pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/8 "2018-10-16T18:55:10Z")

</div>

## Update October 2018

[GitHub - discourse/github\_badges: DEPRECATED: GitHub Badges plugin · GitHub](https://github.com/discourse/github_badges) is now deprecated in favor of [GitHub - discourse/discourse-github · GitHub](https://github.com/discourse/discourse-github)

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [October 16, 2018, 6:55pm UTC](https://meta.discourse.org/t/badges-based-on-github-contributions/30922/9 "2018-10-16T18:55:34Z")

</div>


