Skip to content

Commit

Permalink
Merge 90dcb82 into 0a8ae2d
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Jun 15, 2023
2 parents 0a8ae2d + 90dcb82 commit aa88e50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/RepoGovernance.Core/APIAccess/DevOpsMetricServiceApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public DevOpsMetricServiceApi(string devOpsServiceURL)
try
{
// api/DORASummary/GetDORASummaryItems?owner=samsmithnz&repository=DevOpsMetrics
string url = $"/api/DORASummary/GetDORASummaryItem?owner={owner}&repository={repo}";
string url = $"/api/DORASummary/GetDORASummaryItem?owner={owner}&project=&repository={repo}";
return await BaseApi.GetResponse<DORASummaryItem>(Client, url);
}
catch (Exception ex)
Expand All @@ -31,9 +31,9 @@ public DevOpsMetricServiceApi(string devOpsServiceURL)
DeploymentFrequency = 0,
DeploymentFrequencyBadgeURL = "https://img.shields.io/badge/Deployment%20frequency-None-lightgrey",
LeadTimeForChanges = 0,
LeadTimeForChangesBadgeWithMetricURL = "https://img.shields.io/badge/Lead%20time%20for%20changes-None-lightgrey",
LeadTimeForChangesBadgeURL = "https://img.shields.io/badge/Lead%20time%20for%20changes-None-lightgrey",
MeanTimeToRestore = 0,
MeanTimeToRestoreBadgeURL = "https://img.shields.io/badge/Lead%20time%20for%20changes-None-lightgrey",
MeanTimeToRestoreBadgeURL = "https://img.shields.io/badge/Meant%20time%20to%20restore-None-lightgrey",
ChangeFailureRate = -1, //This is -1 because the value is a percentage, and 0 means something
ChangeFailureRateBadgeURL = "https://img.shields.io/badge/Change%20failure%20rate-None-lightgrey",
LastUpdated = DateTime.Now,
Expand Down
2 changes: 1 addition & 1 deletion src/RepoGovernance.Core/RepoGovernance.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ItemGroup>
<PackageReference Include="Azure.Data.Tables" Version="12.8.0" />
<PackageReference Include="DotNetCensus.Core" Version="1.5.8" />
<PackageReference Include="GitHubActionsDotNet" Version="1.0.26" />
<PackageReference Include="GitHubActionsDotNet" Version="1.0.27" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageReference Include="RepoAutomation.Core" Version="1.4.8" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/RepoGovernance.Tests/SummaryItemsControllerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public async Task UpdateRepoGovernanceSummaryItemTest()
string user = "samsmithnz";
string owner = "samsmithnz";
string project = null;
string repo = "CustomQueue";
string repo = "Sams2048";

//Act - runs a repo in about 4s
int itemsUpdated = await SummaryItemsDA.UpdateSummaryItem(GitHubId, GitHubSecret, AzureStorageConnectionString, DevOpsServiceURL, user, owner, project, repo);
Expand Down

0 comments on commit aa88e50

Please sign in to comment.