Skip to content

Update config and excludeReposByName to support micromatch patterns for more flexible repo exclusion #69

Closed

Description

@Steven-Nagie

Wondering what your thoughts would be for a PR that would allow users to exclude repos for a given micromatch pattern? My use case is that I'm part of a GitLab group with dozens of subgroups and 400+ projects. It's easier for me to exclude the projects I don't want than to specifically include the groups I do want. I've been running the project locally with the changes and it fits my use case well. Example:

{
  "$schema": "./schemas/v2/index.json",
  "repos": [
    {
      "type": "gitlab",
      "token": "{{token}}",
      "users": [
        "{{user}}"
      ],
      "groups": [
        "fake-group"
      ],
      "exclude": {
        "projects": [
          "fake-group/devops/**",
          "fake-group/lambdas/**",
          "fake-group/architecture/**"
        ]
      }
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions