{
    "$schema": "../schemas/v3/index.json",
    "connections": {
        // Include all repos in my-org, except:
        // - repo1 & repo2
        // - repos that are archived or forks
        "example-1": {
            "type": "github",
            "orgs": [
                "my-org"
            ],
            "exclude": {
                "archived": true,
                "forks": true,
                "repos": [
                    "my-org/repo1",
                    "my-org/repo2",
                    "my-org/sub-org-1/**",
                    "my-org/sub-org-*/**"
                ]
            }
        },

        // Include all projects in my-group, except:
        // - project1 & project2
        // - projects that are archived or forks
        "example-2": {
            "type": "gitlab",
            "groups": [
                "my-group"
            ],
            "exclude": {
                "archived": true,
                "forks": true,
                "projects": [
                    "my-group/project1",
                    "my-group/project2",
                    "my-org/sub-org-1/**",
                    "my-org/sub-org-*/**"
                ]
            }
        },

        // Include all repos in my-org, except:
        // - repo1 & repo2
        // - repos that are archived or forks
        "example-3": {
            "type": "gitea",
            "orgs": [
                "my-org"
            ],
            "exclude": {
                "archived": true,
                "forks": true,
                "repos": [
                    "my-org/repo1",
                    "my-org/repo2",
                    "my-org/sub-org-1/**",
                    "my-org/sub-org-*/**"
                ]
            }
        },
        // Include all repos in my-org that have the topic
        // "TypeScript" and do not have a topic that starts
        // with "test-"
        "example-4": {
            "type": "github",
            "orgs": [
                "my-org"
            ],
            "topics": [
                "TypeScript"
            ],
            "exclude": {
                "topics": [
                    "test-**"
                ]
            }
        },
        // Include all repos in my-group that have the topic
        // "TypeScript" and do not have a topic that starts
        // with "test-"
        "example-5": {
            "type": "gitlab",
            "groups": [
                "my-group"
            ],
            "topics": [
                "TypeScript"
            ],
            "exclude": {
                "topics": [
                    "test-**"
                ]
            }
        }
    }
}