add more details to changesets
Signed-off-by: Kiss Miklos <miklos@roadie.io>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend': patch
|
||||
'@backstage/plugin-catalog-backend': minor
|
||||
---
|
||||
|
||||
Moved the code search for the existing catalog-info.yaml files to the backend from the frontend. It means it will use the configured GitHub integration's credentials
|
||||
Added a new method `addLocationAnalyzers` to the `CatalogBuilder`. With this you can add location analyzers to your catalog. These analyzers will be used by the /analyze-location endpoint to decide if the provided URL contains any catalog-info.yaml files already or not.
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-import': minor
|
||||
'@backstage/plugin-catalog-import': patch
|
||||
---
|
||||
|
||||
Moved the code search for the existing catalog-info.yaml files to the backend from the frontend. It means it will use the configured GitHub integration's credentials
|
||||
**Breaking**
|
||||
Moved the code search for the existing catalog-info.yaml files to the backend from the frontend. It means it will use the configured GitHub integration's credentials.
|
||||
|
||||
Add the following to your `CatalogBuilder` to have the repo URL ingestion working again.
|
||||
|
||||
```ts
|
||||
// catalog.ts
|
||||
import { GitHubLocationAnalyzer } from '@backstage/plugin-catalog-backend-module-github';
|
||||
...
|
||||
builder.addLocationAnalyzers(
|
||||
new GitHubLocationAnalyzer({
|
||||
discovery: env.discovery,
|
||||
config: env.config,
|
||||
}),
|
||||
);
|
||||
...
|
||||
```
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-backend-module-github': minor
|
||||
'@backstage/plugin-catalog-backend-module-github': patch
|
||||
---
|
||||
|
||||
Added `GitHubLocationAnalyzer`. This can be used to add to the `CatalogBuilder`. When added this will be used by `RepoLocationAnalyzer` to figure out if the given URL that you are trying to import from the /catalog-import page already contains catalog-info.yaml files.
|
||||
|
||||
@@ -343,7 +343,7 @@ export class CatalogBuilder {
|
||||
/**
|
||||
* Adds Location Analyzers. These are responsible for figuring out
|
||||
* if the repository already contains a catalog-info.yaml file when
|
||||
* you register a repostiroy in the /catalog-import page
|
||||
* you register a repository in the /catalog-import page
|
||||
*
|
||||
* @param locationAnalyzers - One or more location analyzers
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user