fix: remove .git from the url if its a https clone

This commit is contained in:
iCrawl 2021-04-19 12:21:55 +02:00
parent 019154023b
commit 132aaab6b9
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2

View file

@ -80,6 +80,8 @@ export async function activity(previous: ActivityPayload = {}) {
if (repo) { if (repo) {
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 {
repo = repo.replace('.git', '');
} }
state = { state = {