From 8bfc0571ce6fc4fd8a498307776177b627ddf45b Mon Sep 17 00:00:00 2001 From: Otto Nordander Date: Wed, 14 Jul 2021 08:30:37 +0200 Subject: [PATCH] Add changeset for default catalog value Signed-off-by: Otto Nordander --- .changeset/fifty-walls-grin.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .changeset/fifty-walls-grin.md diff --git a/.changeset/fifty-walls-grin.md b/.changeset/fifty-walls-grin.md new file mode 100644 index 0000000000..cd71574322 --- /dev/null +++ b/.changeset/fifty-walls-grin.md @@ -0,0 +1,17 @@ +--- +'@backstage/plugin-catalog-backend': minor +--- + +Add a default catalog value for BitBucketDiscoveryProcessor. This allows to have a target like so: https://bitbucket.mycompany.com/projects/backstage/repos/service-* +which will be expanded to https://bitbucket.mycompany.com/projects/backstage/repos/service-a/catalog-info.yaml given that repository 'service-a' exists. + +## Migration + +If you are using a custom [Bitbucket parser](https://backstage.io/docs/integrations/bitbucket/discovery#custom-repository-processing) and your `bitbucket-discovery` target (e.g. in your app-config.yaml) omits the catalog path in any of the following ways: + +- https://bitbucket.mycompany.com/projects/backstage/repos/service-* +- https://bitbucket.mycompany.com/projects/backstage/repos/* +- https://bitbucket.mycompany.com/projects/backstage/repos/*/ + +then you will be affected by this change. +The 'target' input to your parser before this commit would be '/', and after this commit it will be '/catalog-info.yaml', and as such needs to be handled to maintain the same functionality.