From 9b5b790feb2aa8888b889b638d00b3a8c05e7fef Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Tue, 17 Dec 2024 15:10:41 +0100 Subject: [PATCH] SKA: Relocate script v5.1 (#204563) ## Summary Replace references in `.xml` and `.snap` files too (thanks @kapral18) --- packages/kbn-relocate/constants.ts | 2 ++ packages/kbn-relocate/relocate.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/kbn-relocate/constants.ts b/packages/kbn-relocate/constants.ts index 5b5f4099b782b..8c3bf347de4cb 100644 --- a/packages/kbn-relocate/constants.ts +++ b/packages/kbn-relocate/constants.ts @@ -46,8 +46,10 @@ export const EXTENSIONS = [ 'mdz', 'asciidoc', 'sh', + 'snap', 'ts', 'jsonc', + 'xml', 'yaml', 'yml', ]; diff --git a/packages/kbn-relocate/relocate.ts b/packages/kbn-relocate/relocate.ts index 5852d8fb5be04..16b2c17f4b066 100644 --- a/packages/kbn-relocate/relocate.ts +++ b/packages/kbn-relocate/relocate.ts @@ -255,6 +255,8 @@ export const findAndRelocateModules = async (params: RelocateModulesParams, log: log.info(`Access the PR at: https://github.com/elastic/kibana/pull/${prNumber}`); } else { log.info('TIP: Run the following command to quickly create a PR:'); - log.info(`$ gh pr create -d -t "" -F ${DESCRIPTION} -R elastic/kibana`); + log.info( + `$ gh pr create -d -B "${baseBranch}" -t "<title>" -F ${DESCRIPTION} -R elastic/kibana` + ); } };