Skip to content

Commit af39b20

Browse files
authored
fix(azure): Set username in azuredevops clone url (#524)
* set placeholder username for azuredevops clone url * changelog
1 parent 7020761 commit af39b20

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111
- Fixed sourcebot not pulling github forked repos [#499](https://github.com/sourcebot-dev/sourcebot/pull/499)
12+
- Fixed azure devop cloud pat issue [#524](https://github.com/sourcebot-dev/sourcebot/pull/524)
1213

1314
## [4.7.0] - 2025-09-17
1415

packages/backend/src/repoManager.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ export class RepoManager implements IRepoManager {
218218
if (config.token) {
219219
const token = await getTokenFromConfig(config.token, connection.orgId, db, logger);
220220
return {
221+
// @note: If we don't provide a username, the password will be set as the username. This seems to work
222+
// for ADO cloud but not for ADO server. To fix this, we set a placeholder username to ensure the password
223+
// is set correctly
224+
username: 'user',
221225
password: token,
222226
}
223227
}

0 commit comments

Comments
 (0)