зеркало из https://github.com/github/VisualStudio.git
Add NumberOfClonesToDefaultClonePath counter
Add a counter to record the number of times a repository is cloned to the DefaultClonePath. This will give us an idea of how often users bother to change this default and what impact it has on usage.
This commit is contained in:
Родитель
efe148dd37
Коммит
916e2fd99f
|
@ -135,6 +135,12 @@ namespace GitHub.Services
|
|||
// If it isn't a GitHub URL, assume it's an Enterprise URL
|
||||
await usageTracker.IncrementCounter(x => x.NumberOfEnterpriseClones);
|
||||
}
|
||||
|
||||
if (repositoryPath.StartsWith(DefaultClonePath, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
// Count the number of times users clone into the Default Repository Location
|
||||
await usageTracker.IncrementCounter(x => x.NumberOfClonesToDefaultClonePath);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -91,6 +91,7 @@ namespace GitHub.Models
|
|||
public int NumberOfCloneViewUrlTab { get; set; }
|
||||
public int NumberOfGitHubClones { get; set; }
|
||||
public int NumberOfEnterpriseClones { get; set; }
|
||||
public int NumberOfClonesToDefaultClonePath { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче