[SILO-1174] fix: resolve Bitbucket DC permission error on pull request webhook events #6669

This commit is contained in:
M. Palanikannan
2026-04-09 15:07:14 +05:30
committed by GitHub
parent d0fd91d6d7
commit bba8cfa412
@@ -50,7 +50,7 @@ const handlePullRequestEvent = async (data: BitbucketPullRequestDedupPayload) =>
return;
}
const { wsAdminCredential, planeCredentials } = context;
const { wsAdminCredential } = context;
const { workspaceConnection: bitbucketWorkspaceConnection, allEntityConnections } =
await getConnDetailsForBitbucketToPlaneSync({
@@ -69,7 +69,7 @@ const handlePullRequestEvent = async (data: BitbucketPullRequestDedupPayload) =>
return;
}
const planeClient = await getPlaneAPIClient(planeCredentials, E_INTEGRATION_KEYS.BITBUCKET_DC);
const planeClient = await getPlaneAPIClient(wsAdminCredential, E_INTEGRATION_KEYS.BITBUCKET_DC);
const pullRequestService = await getBitbucketClientService(bitbucketWorkspaceConnection);
const pullRequestBehaviour = new PullRequestBehaviour(