mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
fix(azure): Set username in azuredevops clone url (#524)
* set placeholder username for azuredevops clone url * changelog
This commit is contained in:
parent
7020761ca6
commit
af39b20668
2 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed sourcebot not pulling github forked repos [#499](https://github.com/sourcebot-dev/sourcebot/pull/499)
|
- Fixed sourcebot not pulling github forked repos [#499](https://github.com/sourcebot-dev/sourcebot/pull/499)
|
||||||
|
- Fixed azure devop cloud pat issue [#524](https://github.com/sourcebot-dev/sourcebot/pull/524)
|
||||||
|
|
||||||
## [4.7.0] - 2025-09-17
|
## [4.7.0] - 2025-09-17
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -218,6 +218,10 @@ export class RepoManager implements IRepoManager {
|
||||||
if (config.token) {
|
if (config.token) {
|
||||||
const token = await getTokenFromConfig(config.token, connection.orgId, db, logger);
|
const token = await getTokenFromConfig(config.token, connection.orgId, db, logger);
|
||||||
return {
|
return {
|
||||||
|
// @note: If we don't provide a username, the password will be set as the username. This seems to work
|
||||||
|
// for ADO cloud but not for ADO server. To fix this, we set a placeholder username to ensure the password
|
||||||
|
// is set correctly
|
||||||
|
username: 'user',
|
||||||
password: token,
|
password: token,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue