calcom / synclinear.com

End-to-end sync of Linear and GitHub.
https://synclinear.com
MIT License
372 stars 61 forks source link

Org repos do not show in UI #127

Closed nikitavoloboev closed 1 year ago

nikitavoloboev commented 1 year ago

I want to connect it to this repo: https://github.com/learn-anything/learn-anything.xyz

But it's part of organisation. When I try to sync to github repo, it does not show me any organisation repos.

nikitavoloboev commented 1 year ago

Perhaps I have to manually have to add permission for organisation? I could not find it in the UI how to do it.

Would really appreciate getting this resolved as I want to use your tool for organisation level issues. It should work in theory as I assume https://github.com/calcom/cal.com uses it and its an org. or even https://github.com/calcom/synclinear.com

chrisainerd commented 1 year ago

This is what I want! Is there anybody to resolve it?

nikitavoloboev commented 1 year ago

Most likely it's not supported yet. Have to fork of and try add it ourselves it seems.

tedspare commented 1 year ago

Hey @nikitavoloboev @chrisainerd, sorry for the late reply.

As you noted, there are orgs using the tool so the issue is upstream somewhere preventing GH from listing that org's repos to you. If you're an admin of the org, do these steps work? Profile photo > Your organizations > > Third-party Access > OAuth Application policy > SyncLinear (if it shows) > Edit > Grant Access

Otherwise, what about org settings > Member privileges > Integration access requests?

Please let me know if neither of these works!

tedspare commented 1 year ago

@nikitavoloboev have you had a chance to revisit this?

nikitavoloboev commented 1 year ago

@tedspare

Yes I still can't connect my org repo :(

Here is video of me trying:

https://github.com/calcom/synclinear.com/assets/6391776/dc0367e1-4222-4e86-9fbd-2653d3211d6d

Let me know how I can resolve it, would really appreciate it. ♥️

tedspare commented 1 year ago

Thanks for sharing @nikitavoloboev! Were you able to follow the org settings steps I shared here?

nikitavoloboev commented 1 year ago

Profile photo > Your organizations > > Third-party Access > OAuth Application policy > SyncLinear (if it shows) > Edit > Grant Access

tried doing this, saw this:

image

@tedspare

not sure what i should try now

nikitavoloboev commented 1 year ago

org settings > Member privileges > Integration access requests

I have this set there

image
tedspare commented 1 year ago

Thanks for trying that, @nikitavoloboev. In the GitHub Explorer, do you see those Learn-Anything repos if you run this query?

query { 
  viewer { 
    repositories(first: 100) {
      totalCount
      nodes {
        nameWithOwner
      }
    }
  }
}
nikitavoloboev commented 1 year ago

Just tried it and I don't see the repos there.

nikitavoloboev commented 1 year ago

Is there anything I can do to add the org to the scope?

nikitavoloboev commented 1 year ago

@tedspare anything I can try to make it work? 🙏

tedspare commented 1 year ago

Woops, thanks for the follow-up @nikitavoloboev. Seeing that the org repos don't show in GH Explorer tells me there's an org setting preventing a member (or, at least, your) account from accessing repos.

Two more ideas:

image

image

nikitavoloboev commented 1 year ago

In personal Settings > Applications > Authorized OAuth Apps > SyncLinear.com, can you grant access?

This was the missing piece.

CleanShot 2023-09-13 at 07 28 51@2x

Had to tick an org here. Now it works. 🎊

Thanks a lot. And thanks for building this great tool.