Merge pull request #14174 from Bonial-International-GmbH/pjungermann/github/naming

chore(catalog/github): use consistent naming of `[gG]ithub` in code
This commit is contained in:
Fredrik Adelöw
2022-10-18 10:38:17 +01:00
committed by GitHub
22 changed files with 224 additions and 84 deletions
+2 -2
View File
@@ -30,14 +30,14 @@ And then add the entity provider to your catalog builder:
```diff
// In packages/backend/src/plugins/catalog.ts
+ import { GitHubEntityProvider } from '@backstage/plugin-catalog-backend-module-github';
+ import { GithubEntityProvider } from '@backstage/plugin-catalog-backend-module-github';
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
const builder = await CatalogBuilder.create(env);
+ builder.addEntityProvider(
+ GitHubEntityProvider.fromConfig(env.config, {
+ GithubEntityProvider.fromConfig(env.config, {
+ logger: env.logger,
+ // optional: alternatively, use scheduler with schedule defined in app-config.yaml
+ schedule: env.scheduler.createScheduledTaskRunner({