Continuing the discussion from Badges feedback:
Is it a plugin? I need it for my community! How can I add it to my installation? Does it work currently?
Thanks
The discussion revolves around a plugin for Discourse that awards badges based on GitHub contributions. alefattorini expressed interest in using the plugin, which can be found at https://github.com/discourse/github_badges. However, downey pointed out its limitations, including only monitoring a single repository and matching contributors via email address rather than GitHub ID.
alefattorini and downey also discussed potential improvements, such as supporting multiple repositories and custom user fields for GitHub IDs. cpradio raised concerns about the plugin’s reliance on email addresses, which may not always match. zogstrip, the plugin’s creator, encouraged others to improve the plugin, as it was intended as an example for the badge system.
Continuing the discussion from Badges feedback:
Is it a plugin? I need it for my community! How can I add it to my installation? Does it work currently?
Thanks
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. ![]()
Any news? I’d like to add a badge based on this search on github:
org:my_org type:pr is:merged
Looks like the only commit to this plugin in the past year was from @zogstrip and didn’t really do much for functionality.
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).
That is why we were hoping to be able to use a field for GitHub ID. ![]()
This plugin was merely done as an example of how to write a plugin for the badge system. Feel free to improve it ![]()
GitHub - discourse/github_badges: DEPRECATED: GitHub Badges plugin · GitHub is now deprecated in favor of GitHub - discourse/discourse-github · GitHub