Skip to content

Add topics and exclude.topics to GitHub & GitLab config #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 11, 2024

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