Fixed config logic

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
This commit is contained in:
Andre Wanlin
2025-11-17 14:31:48 -06:00
parent fa255f530a
commit 9246b57e86
@@ -77,7 +77,7 @@ export function readBitbucketCloudIntegrationConfig(
const appPassword = config.getOptionalString('appPassword')?.trim();
const token = config.getOptionalString('token');
if (!token || !appPassword) {
if (!token && !appPassword) {
throw new Error(
`Bitbucket Cloud integration must be configured with as username and either a token or an appPassword.`,
);