fix: remove .git from the url if its a https clone
This commit is contained in:
parent
019154023b
commit
132aaab6b9
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ export async function activity(previous: ActivityPayload = {}) {
|
|||
if (repo) {
|
||||
if (repo.startsWith('git@')) {
|
||||
repo = repo.replace(':', '/').replace('git@', 'https://').replace('.git', '');
|
||||
} else {
|
||||
repo = repo.replace('.git', '');
|
||||
}
|
||||
|
||||
state = {
|
||||
|
|
Loading…
Reference in a new issue