dka23 / gitlab-github-proxy

Proxy to provide GitHub-like API on top of Gitlab. Especially designed to use the JIRA DVCS connector with Gitlab.
35 stars 19 forks source link

Repositories from Groups are not synchronized #27

Open pszalko opened 6 years ago

pszalko commented 6 years ago

We have all repositories under groups in GitLab and none of those repositories is visible in JIRA after synchronizing.

Is it posible somehow to have those repositories synchronized with JIRA?

ricardojlrufino commented 6 years ago

+1

cpfeiffer commented 6 years ago

This is basically the same request as #22. It is implemented as an option in https://github.com/GEBIT/gitlab-github-proxy/commits/GEBIT

You need to enable it via -DtreatOrgaAsOwner=true e.g. in your CATALINA_OPTS.

frimik commented 5 years ago

@cpfeiffer That option gets all repositories a user has access to... It's really nice generally (:+1: ), but in the case where I have lots of users/repos it gets a bit too much.

What do you think about possibility to make it recurse inside the group in question only with a recurse-group flag (very similar to the -DtreatOrgaAsOwner=true)?

So when I add groupA as an "Organisation" in JIRA I get only the sub projects:

groupA/repo1
groupA/subgroupA/repo2
groupA/subgroupB/repo3

Encoded as: groupA/subgroupA:repo2 then I guess?

sort of the same, but only group+subgroup projects.

If I have say 50 users, each with 100 individual repos, and I use my account which happen to have access to all of this repos I end up adding way more than I really want to JIRA. (There could be plenty of throwaway public repos there which serve no purpose tracking in JIRA).