[FIX] convert source_url to only include the token

not having to deal with the username is much easier
This commit is contained in:
Xavier Morel 2023-08-22 08:00:48 +02:00
parent 747162d6e1
commit e88e6fed34

View File

@ -12,8 +12,7 @@ _logger = logging.getLogger(__name__)
def source_url(repository, prefix: str) -> str:
return 'https://{}:{}@github.com/{}'.format(
repository.project_id[f'{prefix}_name'] or '',
return 'https://{}@github.com/{}'.format(
repository.project_id[f'{prefix}_token'],
repository.name,
)