# Discourse-github not posting any linkback

**URL:** https://meta.discourse.org/t/discourse-github-not-posting-any-linkback/176045
**Category:** Support
**Created:** [January 14, 2021, 2:04am UTC](https://meta.discourse.org/t/discourse-github-not-posting-any-linkback/176045 "2021-01-14T02:04:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Jellyfrog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jellyfrog/32/206053_2.png) [@Jellyfrog](https://meta.discourse.org/u/Jellyfrog)
#### Post date: [January 14, 2021, 2:04am UTC](https://meta.discourse.org/t/discourse-github-not-posting-any-linkback/176045/1 "2021-01-14T02:04:02Z")

</div>

After installing the plugin and configured;

- enable discourse github plugin
- github linkback enabled
- github linkback projects
- 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

Any tips?

- Discourse - 2.6.0 (via docker)
- discourse-github - 0.3 (9967e0c)

---

<div class="post-metadata">

### Author: ![MiniRidley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miniridley/32/101670_2.png) [@MiniRidley](https://meta.discourse.org/u/MiniRidley)
#### Post date: [July 23, 2021, 3:49pm UTC](https://meta.discourse.org/t/discourse-github-not-posting-any-linkback/176045/2 "2021-07-23T15:49:01Z")

</div>

Same issue we’re having. Is there a Queued job to be aware of, or any pointers to error logs?

---

<div class="post-metadata">

### Author: ![MiniRidley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miniridley/32/101670_2.png) [@MiniRidley](https://meta.discourse.org/u/MiniRidley)
#### Post date: [July 26, 2021, 7:25am UTC](https://meta.discourse.org/t/discourse-github-not-posting-any-linkback/176045/3 "2021-07-26T07:25:46Z")

</div>

Having a look deeper into the plugin’s code to hopefully see if there was parameters that need to be met and found the following.

```plaintext
!!(SiteSetting.github_linkback_enabled? &&
      SiteSetting.enable_discourse_github_plugin? &&
      @post.present? &&
      @post.post_type == Post.types[:regular] &&
      @post.raw =~ /github\.com/ &&
      Guardian.new.can_see?(@post) &&
      @post.topic.visible?)

```

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.

---

<div class="post-metadata">

### Author: ![aidanheerdegen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanheerdegen/32/277061_2.png) [@aidanheerdegen](https://meta.discourse.org/u/aidanheerdegen)
#### Post date: [October 28, 2022, 4:45am UTC](https://meta.discourse.org/t/discourse-github-not-posting-any-linkback/176045/4 "2022-10-28T04:45:57Z")

</div>

I am having similar issues. I’ve tested my token, as above, and it works, but I am not seeing any linkbacks.

I’ve looked in the logs but can’t see anything, but perhaps I am not looking in the right place?

I’m using a discourse hosted plan (Business) in case that is relevant.

---

<div class="post-metadata">

### Author: ![aidanheerdegen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aidanheerdegen/32/277061_2.png) [@aidanheerdegen](https://meta.discourse.org/u/aidanheerdegen)
#### Post date: [November 10, 2022, 12:00am UTC](https://meta.discourse.org/t/discourse-github-not-posting-any-linkback/176045/6 "2022-11-10T00:00:58Z")

</div>

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.
