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

View File

@@ -99,12 +99,8 @@ export default async function handler(
const commitedPaths = await extractCommitedPaths(
req.body,
composeResult.bitbucketOwner,
composeResult.bitbucket?.apiToken ||
composeResult.bitbucket?.appPassword ||
"",
composeResult.bitbucket,
composeResult.bitbucketRepository || "",
!!composeResult.bitbucket?.apiToken,
);
const shouldDeployPaths = shouldDeploy(