cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
962 stars 34 forks source link

Gitlab does not respect include/exclude settings #90

Closed drewmoseley closed 2 years ago

drewmoseley commented 2 years ago

I've been unable to get my gitlab config to respect any of the include/exclude settings I throw at it. I have one or two repos that I no longer have access to, even though they show in my list of contributions, and I have been unable to figure out what syntax to use to exclude them. I have tried explicit includeorgs as well as excludeorgs and exclude settings all with no luck.

Has anyone successfully used those setting with gitlab?

cooperspencer commented 2 years ago

I just tried those settings in my config-file and they work fine:

source:
  gitlab:
   - user: buddyspencer
     token: <redacted>
     include:
        - phorge
destination:
  local:
    - path: ~/backup
      structured: true
source:
  gitlab:
   - user: buddyspencer
     token: <redacted>
     exclude:
        - phorge
destination:
  local:
    - path: ~/backup
      structured: true
drewmoseley commented 2 years ago

Interesting. It seems gitlab does not have the concept of organizations but it does have both "Name" and "Path" fields. "Path" seems roughly equivalent to "org" in github.

In my case I guess I want to exclude/include based on path.

drewmoseley commented 2 years ago

I created this pr which seems to fix this. I have not done anything with includeorgs but that should be relatively straight forward as well. I think we can move the discussion to the PR.