diff --git a/src/github/manifests/home-assistant-contributors.ts b/src/github/manifests/home-assistant-contributors.ts deleted file mode 100644 index 2c7f38e..0000000 --- a/src/github/manifests/home-assistant-contributors.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { ignore, unignore } from "../commands/ignore.js"; -import { update } from "../commands/update.js"; -import { - HomeAssistantRepository, - homeAssistantLinkRules, - homeAssistantOrgRules, -} from "./home-assistant-org.js"; -import type { RepoManifest } from "./types.js"; - -export const homeAssistantContributors: RepoManifest = { - slug: HomeAssistantRepository.CONTRIBUTORS_HOME_ASSISTANT, - dashboard: true, - rules: [ - // Related PRs - ...homeAssistantLinkRules, - - // Org-wide - ...homeAssistantOrgRules, - ], - commands: [update, ignore, unignore], -}; diff --git a/src/github/manifests/index.ts b/src/github/manifests/index.ts index 39c5c37..fda4058 100644 --- a/src/github/manifests/index.ts +++ b/src/github/manifests/index.ts @@ -1,7 +1,6 @@ import type { Command, RegistryConfig, RepoConfig, Rule } from "../engine/types.js"; import { esphomeOrg } from "./esphome-org.js"; import { homeAssistantBrands } from "./home-assistant-brands.js"; -import { homeAssistantContributors } from "./home-assistant-contributors.js"; import { homeAssistantCore } from "./home-assistant-core/index.js"; import { homeAssistantFrontend } from "./home-assistant-frontend.js"; import { homeAssistantIo } from "./home-assistant-io/index.js"; @@ -12,7 +11,6 @@ import type { OrgManifest, RepoManifest } from "./types.js"; /** Repos with rules of their own. Add a repo by authoring a manifest and listing it here. */ const MANIFESTS: RepoManifest[] = [ homeAssistantBrands, - homeAssistantContributors, homeAssistantCore, homeAssistantFrontend, homeAssistantIo, diff --git a/tests/github/manifests/home-assistant-contributors.test.ts b/tests/github/manifests/home-assistant-contributors.test.ts deleted file mode 100644 index fcbe98e..0000000 --- a/tests/github/manifests/home-assistant-contributors.test.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { registryConfig } from "../../../src/github/manifests/index.js"; - -const names = (items: readonly { name: string }[]) => items.map((item) => item.name); - -describe("home-assistant/contributors.home-assistant.io", () => { - it("runs a dashboard and the rules for PRs that belong together", () => { - const config = registryConfig.repositories["home-assistant/contributors.home-assistant.io"]; - - expect(config.dashboard).toBe(true); - expect(names(config.rules)).toEqual( - expect.arrayContaining(["belongs-together", "poke-linked", "follow-parent"]), - ); - expect(names(config.commands)).toEqual(["update", "ignore", "unignore"]); - }); -}); diff --git a/tests/github/manifests/org-fallback.test.ts b/tests/github/manifests/org-fallback.test.ts index 481ca58..334fe0f 100644 --- a/tests/github/manifests/org-fallback.test.ts +++ b/tests/github/manifests/org-fallback.test.ts @@ -41,6 +41,7 @@ describe("org fallback", () => { "home-assistant/installer", "home-assistant/os-agent", "home-assistant/cli", + "home-assistant/contributors.home-assistant.io", ])("runs the home-assistant org rules on %s, without a dashboard", (repo) => { const { repoConfig } = contextFor(repo);