diff --git a/.changeset/tasty-forks-compare.md b/.changeset/tasty-forks-compare.md new file mode 100644 index 0000000000..6e748d884b --- /dev/null +++ b/.changeset/tasty-forks-compare.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-techdocs-node': patch +--- + +Updated getRepoUrlFromLocationAnnotation to check for harness scm integration diff --git a/plugins/techdocs-node/src/stages/generate/helpers.ts b/plugins/techdocs-node/src/stages/generate/helpers.ts index df1a31470d..5efe96877f 100644 --- a/plugins/techdocs-node/src/stages/generate/helpers.ts +++ b/plugins/techdocs-node/src/stages/generate/helpers.ts @@ -101,11 +101,13 @@ export const getRepoUrlFromLocationAnnotation = ( if (locationType === 'url') { const integration = scmIntegrations.byUrl(target); - // We only support it for github, gitlab and bitbucketServer for now as the edit_uri + // We only support it for github, gitlab, bitbucketServer and harness for now as the edit_uri // is not properly supported for others yet. if ( integration && - ['github', 'gitlab', 'bitbucketServer'].includes(integration.type) + ['github', 'gitlab', 'bitbucketServer', 'harness'].includes( + integration.type, + ) ) { // handle the case where a user manually writes url:https://github.com/backstage/backstage i.e. without /blob/... const { filepathtype } = gitUrlParse(target);