refactor(bitbucket): streamline extractCommitedPaths function by passing Bitbucket object directly

This commit is contained in:
Mauricio Siu
2025-09-21 15:15:21 -06:00
parent 8b88c85b37
commit d22ed9b569
@@ -99,12 +99,8 @@ export default async function handler(
const commitedPaths = await extractCommitedPaths( const commitedPaths = await extractCommitedPaths(
req.body, req.body,
composeResult.bitbucketOwner, composeResult.bitbucket,
composeResult.bitbucket?.apiToken ||
composeResult.bitbucket?.appPassword ||
"",
composeResult.bitbucketRepository || "", composeResult.bitbucketRepository || "",
!!composeResult.bitbucket?.apiToken,
); );
const shouldDeployPaths = shouldDeploy( const shouldDeployPaths = shouldDeploy(