Skip to content

Conversation

brendan-kellam
Copy link
Contributor

@brendan-kellam brendan-kellam commented Dec 10, 2024

This PR adds the ability to filter what repos are indexed based on the topics that do/don't exist on a given repo. E.g.,:

{
    "$schema": "./schemas/v2/index.json",
    "repos": [
        {
            "type": "github",
            "orgs": [
                "sourcebot-dev"
            ],
            // Include repositories in `sourcebot-dev` that have at least one of these topics.
            "topics": [
                "hacktoberfest",
                "advent_of_code"
            ],
            "exclude": {
                // Explicitly exclude a topic from being indexed.
                "topics": [
                    "TypeScript"
                ]
            }
        }
    }
}

In the above case, a repo with the label hacktoberfest will be indexed, but a repo with both hacktoberfest and TypeScript will not be indexed.

Fixes #107

@brendan-kellam brendan-kellam merged commit 4d358f9 into main Dec 11, 2024
3 checks passed
@brendan-kellam brendan-kellam deleted the bkellam/filter_topics branch December 11, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include/exclude by topic or tag
1 participant