From b7ecd63ffed487c93c0d1b7b10be5047e9124e49 Mon Sep 17 00:00:00 2001 From: Nico Korthout Date: Thu, 8 Jun 2023 14:37:18 +0200 Subject: [PATCH] feat(backport): log determined target branches This is helpful to users to better understand which target branches have been determined to backport to. (cherry picked from commit a01196f23f22569577ae51369b18e3c378d1de7d) --- src/backport.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/backport.ts b/src/backport.ts index 9e662eb..d9ebb47 100644 --- a/src/backport.ts +++ b/src/backport.ts @@ -378,9 +378,13 @@ export function findTargetBranches( `Found target branches in \`target_branches\` input: ${configuredTargetBranches}` ); - return [ + const targetBranches = [ ...new Set([...targetBranchesFromLabels, ...configuredTargetBranches]), ]; + + console.log(`Determined target branches: ${targetBranches}`); + + return targetBranches; } function findTargetBranchesFromLabels(