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.

(cherry picked from commit a01196f)
  • Loading branch information
korthout authored and github-actions[bot] committed Jun 8, 2023
1 parent b9f8a0a commit b7ecd63
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 b7ecd63

Please sign in to comment.