Mattermost-plugin-github: Unable to subscribe/receive notification from private repo in orgs

Created on 10 Jun 2020  路  5Comments  路  Source: mattermost/mattermost-plugin-github

I'm just moving my repos into organization and found this problem - adding subscription of private repo inside organization makes error unknown repositiory.

Making new repo causes same issue.

  • Make new repo inside org with public and subscribe : succes
  • Make new repo inside org with private and subscribe : fail
  • Changing private repo to public and subscribe again : success, receives notification
  • Change to private again and make notification : no notification

Github todo list also works wrong. Article from normal private repo is displaying fine but private repo inside org is not.

I got 6 assignments but github plugin shows only 5, excluding issues from private repo inside organization.
image
image

TypQuestion

All 5 comments

Did you connect your GitHub using /github connect private? If not, could you please try re-connecting your account using that command?

@hanzei Yes, I used private option. Private repo without organization works fine.
Reconnecting does not helped. I tried from another PC without login cache but no luck.

My GitHub plugin version is 1.0.0(recently updated with update button on plugin list), and Mattermost version is 5.23.0.

Does your OAuth Application has access to your organization? You can find that information in your GitHub Setting under Applications -> Authorized OAuth Apps

image
@hanzei Yeah that was the problem. Organization access was restricted by default.

image
image
Granting access(or request access & approve) solved the problem. It must be done once except the organization itself makes the application.

Problem solved. Thanks for your help!

Glad your issue got solved :+1:

Was this page helpful?
0 / 5 - 0 ratings