Skip to content

Commit

Permalink
Adding groups to dependabot (#534)
Browse files Browse the repository at this point in the history
* Updating dependencies

* Updated version

* updated release and tag names

* Added better error handling to index page

* Updated dependabot file to add grouping
  • Loading branch information
samsmithnz committed Aug 29, 2023
1 parent 21ca5c4 commit fe1899b
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ updates:
assignees:
- samsmithnz
open-pull-requests-limit: 10
groups:
service:
patterns: ["*"]
update-types: ["minor", "patch"]
- package-ecosystem: nuget
directory: /src/RepoGovernance.Tests/
schedule:
Expand All @@ -18,6 +22,10 @@ updates:
assignees:
- samsmithnz
open-pull-requests-limit: 10
groups:
tests:
patterns: ["*"]
update-types: ["minor", "patch"]
- package-ecosystem: nuget
directory: /src/RepoGovernance.Web/
schedule:
Expand All @@ -27,6 +35,10 @@ updates:
assignees:
- samsmithnz
open-pull-requests-limit: 10
groups:
web:
patterns: ["*"]
update-types: ["minor", "patch"]
- package-ecosystem: nuget
directory: /src/RepoGovernance.Core/
schedule:
Expand All @@ -36,6 +48,10 @@ updates:
assignees:
- samsmithnz
open-pull-requests-limit: 10
groups:
core:
patterns: ["*"]
update-types: ["minor", "patch"]
- package-ecosystem: github-actions
directory: /
schedule:
Expand All @@ -45,3 +61,7 @@ updates:
assignees:
- samsmithnz
open-pull-requests-limit: 10
groups:
actions:
patterns: ["*"]
update-types: ["minor", "patch"]
4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ jobs:
uses: ncipollo/release-action@v1
if: needs.build.outputs.CommitsSinceVersionSource > 0 #Only create a release if there has been a commit/version change
with:
tag: ${{ needs.build.outputs.Version }}
name: Release ${{ needs.build.outputs.Version }}
tag: "v${{ needs.build.outputs.Version }}"
name: "v${{ needs.build.outputs.Version }}"
token: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
2 changes: 1 addition & 1 deletion GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
next-version: 0.17.0
next-version: 0.18.0
4 changes: 2 additions & 2 deletions src/RepoGovernance.Core/RepoGovernance.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
<PackageReference Include="Azure.Data.Tables" Version="12.8.1" />
<PackageReference Include="Azure.Identity" Version="1.10.0" />
<PackageReference Include="DotNetCensus.Core" Version="1.5.11" />
<PackageReference Include="GitHubActionsDotNet" Version="1.0.29" />
<PackageReference Include="GitHubActionsDotNet" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Graph" Version="5.23.0" />
<PackageReference Include="Microsoft.Graph" Version="5.24.0" />
<PackageReference Include="RepoAutomation.Core" Version="1.4.15" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/RepoGovernance.Tests/RepoGovernance.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
Expand Down
6 changes: 5 additions & 1 deletion src/RepoGovernance.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,18 @@
</div>
}
<span class="lastUpdatedText">Last updated: </span>
@if (@item.LastUpdated > DateTime.Now.AddDays(-7))
@if (item.LastUpdated > DateTime.Now.AddDays(-7))
{
<span class="lastUpdatedText">@item.LastUpdated.ToString("dd-MMM-yyyy HH:mmtt")</span>
}
else
{
<span class="lastUpdatedRedText">@item.LastUpdated.ToString("dd-MMM-yyyy HH:mmtt")</span>
}
@if (item.LastUpdatedMessage != null)
{
<span><i class="bi bi-exclamation-circle lastUpdatedRedText" title="@item.LastUpdatedMessage"></i></span>
}
@if (Model.IsContributor)
{
<a href="@Url.Action("UpdateRow", "Home", new { user = item.User, owner = item.Owner, repo = item.Repo, isContributor = Model.IsContributor })" class="lastUpdatedText">Update metrics</a>
Expand Down

0 comments on commit fe1899b

Please sign in to comment.