Skip to content

Commit

Permalink
Merge pull request #16 from mozilla-services/use_github_multientity
Browse files Browse the repository at this point in the history
Use GithubMultiOrgEntityProvider to scan from multiple orgs
  • Loading branch information
bbangert authored May 1, 2024
2 parents 1a0322e + 002b039 commit e6d68be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/backend/src/plugins/catalog.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CatalogBuilder } from '@backstage/plugin-catalog-backend';
import { GithubEntityProvider } from '@backstage/plugin-catalog-backend-module-github';
import { GithubOrgEntityProvider } from '@backstage/plugin-catalog-backend-module-github';
import { GithubMultiOrgEntityProvider } from '@backstage/plugin-catalog-backend-module-github';
import { ScaffolderEntitiesProcessor } from '@backstage/plugin-scaffolder-backend';
import { Router } from 'express';
import { PluginEnvironment } from '../types';
Expand All @@ -18,9 +18,12 @@ export default async function createPlugin(
);
// GitHub Org Provider without events support
builder.addEntityProvider(
GithubOrgEntityProvider.fromConfig(env.config, {
GithubMultiOrgEntityProvider.fromConfig(env.config, {
id: 'production',
orgUrl: 'https://github.com/mozilla-services',
githubUrl: 'https://github.com',
// Set the following to list the GitHub orgs you wish to ingest from. You can
// also omit this option to ingest all orgs accessible by your GitHub integration
orgs: ['mozilla-services', 'mozilla'],
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { minutes: 15 },
Expand Down

0 comments on commit e6d68be

Please sign in to comment.