Features
Github Badges
Assign badges to your users based on GitHub contributions.
How to use:
- Enable
github badges enabled
in Settings -> Plugins.
- Generate a GitHub access token and paste it into the
github linkback access token
setting. See below for instructions.
- Add one or more URLs of the GitHub repos to scan for contributions to the
github badges repos
site setting.
Github Linkback
Create a link from a Github pull request or commit back to a Discourse post where it is mentioned.
How to use:
- Enable
github linkback enabled
in Settings -> Plugins.
- Generate a GitHub access token and paste it into the
github linkback access token
setting. See below for instructions.
- Finally, add the projects you wish to post to in the
github linkback projects
site setting in the formats:
-
username/repository
for specific repositories
-
username/*
for all repositories of a certain user
Github Permalink
Replace Github non-permalinks with permalinks.
How to use:
- Enable
github permalinks enabled
in Settings -> Plugins.
Configuration
GitHub Access Token
In order for the linkback feature to work and the badges to be granted to your users, you need to provide a Github access token. You can generate your token here: Sign in to GitHub · GitHub.
The linkback feature requires the public_repo
scope, and granting badges requires no scope (leave everything unchecked if you only want badges). Since the public_repo
scope grants write access to repositories, we recommend you create a throwaway Github account that has access to no repositories and use it just to generate a token.
CHANGELOG
TODO
Last edited by @JammyDodger 2024-06-18T15:21:44Z
Check document
Perform check on document:
29 Likes
ImmaZoni
(Justin)
71
What is the process for multiple links? does it just add them to the same commit comment? or make a whole new comment every time?
1 Like
I wonder if commits and PRs badges could be simplified because we are trying to keep away The paradox of choice 
Currently I just forked and deleted commit badges but of course, I loss myself from the commit badge (because I’m commiting directly) and fork is not equal to keeping always with the core.
The wildcard * didn’t work for me for a GitHub organization, I ended up putting in every repo individually. Has anyone else had issues with this with an organization vs. a user?
greyli
(Grey Li)
74
How to set the linkback comment language?
cultiv
(Sebastiaan Janssen)
75
Thank you, I really like this plugin! I was confused about the badges system and was glad to find the explanation in a different topic: Github Badges are not working. Its hard to see if I do something wrong or if the plugin is not working - #4 by simon
However, that reply notes that
The plugin creates 6 badges:
I don’t see any of these badges, not sure what happened? Is there a way to (re?)trigger the creation of these badges?
1 Like
cultiv
(Sebastiaan Janssen)
76
To answer my own question, after a few hours the scheduled task ran and that’s when the badges got created.
The manual way to do this would be to trigger the sidekiq job it seems.
1 Like