Users are experiencing issues with the Discourse-Github plugin not posting linkbacks to Github. Despite configuring the plugin and using a valid Github access token, no comments appear on Github.
MiniRidley investigated the plugin’s code and discovered that several conditions must be met for the linkback to work, including the post being in a public category (@post.topic.visible).
Aidanheerdegen solved their issue by ensuring the organization name in the configuration matched the case of the organization name on Github, as the plugin is case-sensitive.
github linkback access token (token with public_repo enabled)
I tried via curl like so; curl -X POST -H 'Authorization: token *token*' https://api.github.com/repos/*project*/issues/*id*/comments -d '{"body": "test"}' and that works, so the token is valid.
Then I create a topic and post a link to a pull request, but no comment appears on github.
Not finding any logs regarding it either
Now I don’t know all the variables but the post.topic.visible would that mean it needs to be in a public category for it to be linked back? My first couple of attempts where in categories that were only visible to the moderators that didn’t seem to work, is that a possible reason it didn’t work or through an error?
Any insight on the other parameters/requirements would be much appreciated.
My issue was solved by @dax (thanks!). I had lower-case organisation names in the configuration, but the repos have mixed lower and uppercase. GitHub is case-insensitive, and either work, but the plugin requires the case to match the name as shown on the relevant organisation.