fix: remove access token/auth from git url
This commit is contained in:
parent
c9d294892a
commit
7959048fbe
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ export async function activity(previous: ActivityPayload = {}) {
|
||||||
if (repo.startsWith('git@')) {
|
if (repo.startsWith('git@')) {
|
||||||
repo = repo.replace(':', '/').replace('git@', 'https://').replace('.git', '');
|
repo = repo.replace(':', '/').replace('git@', 'https://').replace('.git', '');
|
||||||
} else {
|
} else {
|
||||||
repo = repo.replace('.git', '');
|
repo = repo.replace(/(https:\/\/)([^@]*)@(.*?$)/, '$1$3').replace('.git', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
|
|
Loading…
Reference in a new issue