Skip to content

catalog-backend-module-annotate-scm-slug: add option for configuring applicable entity kinds#9445

Open
04kash wants to merge 2 commits into
backstage:mainfrom
04kash:catalog-backend-module-annotate-scm-slug/configure-kinds
Open

catalog-backend-module-annotate-scm-slug: add option for configuring applicable entity kinds#9445
04kash wants to merge 2 commits into
backstage:mainfrom
04kash:catalog-backend-module-annotate-scm-slug/configure-kinds

Conversation

@04kash

@04kash 04kash commented Jun 10, 2026

Copy link
Copy Markdown
Member

Hey, I just made a Pull Request!

catalog-backend-module-annotate-scm-slug already supports multiple kinds, this PR allows applicable kinds to be set through app-config.yaml.

Fixes: #9397

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

…applicable entity kinds

Signed-off-by: Kashish Mittal <kmittal@redhat.com>
@backstage-goalie

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-catalog-backend-module-annotate-scm-slug workspaces/catalog/plugins/catalog-backend-module-annotate-scm-slug patch v0.3.0

@04kash 04kash marked this pull request as ready for review June 10, 2026 21:21
@04kash 04kash requested a review from awanlin as a code owner June 10, 2026 21:21
Copilot AI review requested due to automatic review settings June 10, 2026 21:21
@04kash 04kash requested review from a team and freben as code owners June 10, 2026 21:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a configuration surface to the @backstage-community/plugin-catalog-backend-module-annotate-scm-slug backend module so adopters can control which entity kinds the AnnotateScmSlugEntityProcessor applies to via app-config.yaml, matching the processor’s existing support for multiple kinds (per issue #9397).

Changes:

  • Read catalog.processors.annotateScmSlug.kinds from config and pass it into AnnotateScmSlugEntityProcessor.fromConfig(...).
  • Add config reader + unit tests for the new config option.
  • Document the new configuration and publish a config.d.ts schema for Backstage config validation.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
workspaces/catalog/plugins/catalog-backend-module-annotate-scm-slug/src/module.ts Wires configured kinds into the processor at module init time.
workspaces/catalog/plugins/catalog-backend-module-annotate-scm-slug/src/config.ts Adds a small helper to read annotateScmSlug.kinds from app-config.yaml.
workspaces/catalog/plugins/catalog-backend-module-annotate-scm-slug/src/config.test.ts Tests config parsing for presence/absence of kinds.
workspaces/catalog/plugins/catalog-backend-module-annotate-scm-slug/README.md Documents how to configure applicable entity kinds.
workspaces/catalog/plugins/catalog-backend-module-annotate-scm-slug/package.json Publishes config schema metadata and includes config.d.ts in package files.
workspaces/catalog/plugins/catalog-backend-module-annotate-scm-slug/config.d.ts Defines the Backstage config schema for catalog.processors.annotateScmSlug.kinds.
workspaces/catalog/.changeset/wet-geese-tease.md Declares a patch release for the new configuration option.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Kashish Mittal <kmittal@redhat.com>
@04kash 04kash force-pushed the catalog-backend-module-annotate-scm-slug/configure-kinds branch from a62bb8b to a0e2c19 Compare June 10, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

catalog-backend-module-annotate-scm-slug: Applicable kinds no longer configurable after migration

3 participants