mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] convert source_url to only include the token
not having to deal with the username is much easier
This commit is contained in:
parent
747162d6e1
commit
e88e6fed34
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user