Apply suggestions from code review
Co-authored-by: Johan Haals <johan@haals.se> Signed-off-by: Tracey Radcliffe <tradcliffe@expediagroup.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend-module-confluence-to-markdowwn': patch
|
||||
'@backstage/plugin-scaffolder-backend-module-confluence-to-markdowwn': minor
|
||||
---
|
||||
|
||||
Created new action for converting confluence docs to Markdown, to be pushed to GitHub repos onboarded onto Techdocs
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@backstage/plugin-scaffolder-backend-module-confluence-to-markdowwn",
|
||||
"name": "@backstage/plugin-scaffolder-backend-module-confluence-to-markdown",
|
||||
"description": "The confluence-to-markdowwn module for @backstage/plugin-scaffolder-backend",
|
||||
"version": "0.0.0",
|
||||
"main": "src/index.ts",
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ export const createConfluenceToMarkdownAction = (options: {
|
||||
},
|
||||
async handler(ctx) {
|
||||
const { confluenceUrls, repoUrl } = ctx.input;
|
||||
const parsedRepoUrl = parseGitUrl(`${repoUrl}`);
|
||||
const parsedRepoUrl = parseGitUrl(repoUrl);
|
||||
const filePathToMkdocs = parsedRepoUrl.filepath.substring(
|
||||
0,
|
||||
parsedRepoUrl.filepath.lastIndexOf('/') + 1,
|
||||
|
||||
Reference in New Issue
Block a user