Skip to content

Commit

Permalink
feat(backport): log determined target branches
Browse files Browse the repository at this point in the history
This is helpful to users to better understand which target branches have
been determined to backport to.
  • Loading branch information
korthout committed Jun 8, 2023
1 parent c7cd0e7 commit a01196f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a01196f

Please sign in to comment.