sourcebot/configs/filter.json

98 lines
2.6 KiB
JSON
Raw Normal View History

2024-10-17 20:31:18 +00:00
{
"$schema": "../schemas/v3/index.json",
"connections": {
2024-10-17 20:31:18 +00:00
// Include all repos in my-org, except:
// - repo1 & repo2
// - repos that are archived or forks
"example-1": {
2024-10-17 20:31:18 +00:00
"type": "github",
"orgs": [
"my-org"
],
"exclude": {
"archived": true,
"forks": true,
"repos": [
"my-org/repo1",
2024-11-14 22:16:31 +00:00
"my-org/repo2",
"my-org/sub-org-1/**",
"my-org/sub-org-*/**"
2024-10-17 20:31:18 +00:00
]
}
},
// Include all projects in my-group, except:
// - project1 & project2
// - projects that are archived or forks
"example-2": {
2024-10-17 20:31:18 +00:00
"type": "gitlab",
"groups": [
"my-group"
],
"exclude": {
"archived": true,
"forks": true,
"projects": [
"my-group/project1",
2024-11-14 22:16:31 +00:00
"my-group/project2",
"my-org/sub-org-1/**",
"my-org/sub-org-*/**"
2024-10-17 20:31:18 +00:00
]
}
2024-11-01 17:51:14 +00:00
},
// Include all repos in my-org, except:
// - repo1 & repo2
// - repos that are archived or forks
"example-3": {
2024-11-01 17:51:14 +00:00
"type": "gitea",
"orgs": [
"my-org"
],
"exclude": {
"archived": true,
"forks": true,
"repos": [
"my-org/repo1",
2024-11-14 22:16:31 +00:00
"my-org/repo2",
"my-org/sub-org-1/**",
"my-org/sub-org-*/**"
2024-11-01 17:51:14 +00:00
]
}
},
// 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-**"
]
}
}
}
2024-10-17 20:31:18 +00:00
}