Version Packages

This commit is contained in:
github-actions[bot]
2021-07-01 09:06:13 +00:00
parent ba69dca530
commit 6e937b9fa6
118 changed files with 611 additions and 480 deletions
+46
View File
@@ -1,5 +1,51 @@
# @backstage/integration
## 0.5.7
### Patch Changes
- 22a60518c: Support ingesting multiple GitHub organizations via a new `GithubMultiOrgReaderProcessor`.
This new processor handles namespacing created groups according to the org of the associated GitHub team to prevent potential name clashes between organizations. Be aware that this processor is considered alpha and may not be compatible with future org structures in the catalog.
NOTE: This processor only fully supports auth via GitHub Apps
To install this processor, import and add it as follows:
```typescript
// Typically in packages/backend/src/plugins/catalog.ts
import { GithubMultiOrgReaderProcessor } from '@backstage/plugin-catalog-backend';
// ...
export default async function createPlugin(env: PluginEnvironment) {
const builder = new CatalogBuilder(env);
builder.addProcessor(
GithubMultiOrgReaderProcessor.fromConfig(env.config, {
logger: env.logger,
}),
);
// ...
}
```
Configure in your `app-config.yaml` by pointing to your GitHub instance and optionally list which GitHub organizations you wish to import. You can also configure what namespace you want to set for teams from each org. If unspecified, the org name will be used as the namespace. If no organizations are listed, by default this processor will import from all organizations accessible by all configured GitHub Apps:
```yaml
catalog:
locations:
- type: github-multi-org
target: https://github.myorg.com
processors:
githubMultiOrg:
orgs:
- name: fooOrg
groupNamespace: foo
- name: barOrg
groupNamespace: bar
- name: awesomeOrg
- name: anotherOrg
```
## 0.5.6
### Patch Changes