diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..59b22b9 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# These owners will be the default owners for everything in the repo and +# will be requested for review when someone opens a pull request. +* @pascalberger \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7c249b8 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: +- package-ecosystem: nuget + directory: "/src" + schedule: + interval: daily + time: "04:00" + open-pull-requests-limit: 10 + ignore: + - dependency-name: Cake.Core + versions: + - "> 1.0.0, < 2" + - dependency-name: Cake.Testing + versions: + - "> 1.0.0, < 2" + - dependency-name: Cake.Issues + versions: + - "> 1.0.0, < 2" \ No newline at end of file diff --git a/GitReleaseManager.yaml b/GitReleaseManager.yaml index 721c1ba..edffcfb 100644 --- a/GitReleaseManager.yaml +++ b/GitReleaseManager.yaml @@ -4,6 +4,7 @@ issue-labels-include: - Bug - Improvement - Documentation +- Dependencies issue-labels-exclude: - Build issue-labels-alias: diff --git a/nuspec/nuget/Cake.Frosting.Issues.Reporting.Console.nuspec b/nuspec/nuget/Cake.Frosting.Issues.Reporting.Console.nuspec index edcabfc..481f62b 100644 --- a/nuspec/nuget/Cake.Frosting.Issues.Reporting.Console.nuspec +++ b/nuspec/nuget/Cake.Frosting.Issues.Reporting.Console.nuspec @@ -19,7 +19,7 @@ NOTE: This is the version of the addin compatible with Cake Frosting. For addin compatible with Cake Script Runners see Cake.Issues.Reporting.Console. -The addin requires Cake Frosting 1.2.0 or higher running on .NET 5.0 or higher. +The addin requires Cake Frosting 1.2.0 or higher. MIT https://cakeissues.net @@ -28,20 +28,20 @@ The addin requires Cake Frosting 1.2.0 or higher running on .NET 5.0 or higher. Copyright © Pascal Berger cake cake-addin cake-issues cake-reportformat issues reporting console - https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.2.0 + https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.3.0 - + - - - + + + \ No newline at end of file diff --git a/nuspec/nuget/Cake.Issues.Reporting.Console.nuspec b/nuspec/nuget/Cake.Issues.Reporting.Console.nuspec index 4915bdc..dfae3c4 100644 --- a/nuspec/nuget/Cake.Issues.Reporting.Console.nuspec +++ b/nuspec/nuget/Cake.Issues.Reporting.Console.nuspec @@ -8,7 +8,7 @@ pascalberger, cake-contrib Support for reporting issues to console for the Cake.Issues addin for Cake Build Automation System -This addin for the Cake.Issues addin for Cake .NET Tool allows you to print issues to the console. +This addin for the Cake.Issues addin for Cake Script Runners allows you to print issues to the console. This addin provides the aliases for reporting issues to the console. It also requires the core Cake.Issues and Cake.Issues.Reporting addins and one or more issue providers. @@ -16,10 +16,10 @@ It also requires the core Cake.Issues and Cake.Issues.Reporting addins and one o See the Project Site for an overview of the whole ecosystem of addins for working with issues in Cake scripts. NOTE: -This is the version of the addin compatible with Cake .NET Tool. +This is the version of the addin compatible with Cake Script Runners. For addin compatible with Cake Frosting see Cake.Frosting.Issues.Reporting.Console. -The addin requires Cake .NET Tool 1.2.0 or higher running on .NET 5.0 or higher. +The addin requires Cake 1.2.0 or higher. MIT https://cakeissues.net @@ -28,13 +28,13 @@ The addin requires Cake .NET Tool 1.2.0 or higher running on .NET 5.0 or higher. Copyright © Pascal Berger cake cake-addin cake-issues cake-reportformat issues reporting console - https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.2.0 + https://github.com/cake-contrib/Cake.Issues.Reporting.Console/releases/tag/0.3.0 - - - - + + + + \ No newline at end of file diff --git a/src/Cake.Issues.Reporting.Console.Tests/Cake.Issues.Reporting.Console.Tests.csproj b/src/Cake.Issues.Reporting.Console.Tests/Cake.Issues.Reporting.Console.Tests.csproj index 434c8c3..2988b93 100644 --- a/src/Cake.Issues.Reporting.Console.Tests/Cake.Issues.Reporting.Console.Tests.csproj +++ b/src/Cake.Issues.Reporting.Console.Tests/Cake.Issues.Reporting.Console.Tests.csproj @@ -48,7 +48,7 @@ runtime; build; native; contentfiles; analyzers all - + 2.4.1 diff --git a/src/Cake.Issues.Reporting.Console/Cake.Issues.Reporting.Console.csproj b/src/Cake.Issues.Reporting.Console/Cake.Issues.Reporting.Console.csproj index 25d8f68..035808a 100644 --- a/src/Cake.Issues.Reporting.Console/Cake.Issues.Reporting.Console.csproj +++ b/src/Cake.Issues.Reporting.Console/Cake.Issues.Reporting.Console.csproj @@ -2,7 +2,7 @@ Library - net5.0 + netstandard2.0 Support for reporting issues to the console for the Cake.Issues addin for Cake Build Automation System Pascal Berger Cake.Issues @@ -10,6 +10,7 @@ + latest full true AllEnabledByDefault @@ -31,7 +32,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Cake.Issues.Reporting.Console/ConsoleIssueReportGenerator.cs b/src/Cake.Issues.Reporting.Console/ConsoleIssueReportGenerator.cs index 1b49f5b..0645114 100644 --- a/src/Cake.Issues.Reporting.Console/ConsoleIssueReportGenerator.cs +++ b/src/Cake.Issues.Reporting.Console/ConsoleIssueReportGenerator.cs @@ -69,7 +69,7 @@ protected override FilePath InternalCreateReport(IEnumerable issues) report.Render( AnsiConsole.Console, - new ReportSettings + new ReportSettings { Compact = this.consoleIssueReportFormatSettings.Compact, }); @@ -105,11 +105,12 @@ private void PrintSummary(IEnumerable issues) priorityTable.AddColumn(new TableColumn("Issue Provider / Run").Centered()); priorityTable.AddColumn(new TableColumn("Number Of Issues").Centered()); + var i = 1; foreach (var providerGroup in issues.GroupBy(x => x.ProviderName)) { var issueProvider = providerGroup.Key; - providerChart.AddItem(issueProvider, providerGroup.Count()); + providerChart.AddItem(issueProvider, providerGroup.Count(), Color.FromInt32(i)); foreach (var runGroup in providerGroup.GroupBy(x => x.Run)) { @@ -136,6 +137,7 @@ private void PrintSummary(IEnumerable issues) } priorityTable.AddEmptyRow(); + i++; } if (this.consoleIssueReportFormatSettings.ShowProviderSummary) diff --git a/src/Cake.Issues.Reporting.Console/FileSystemRepository.cs b/src/Cake.Issues.Reporting.Console/FileSystemRepository.cs index 758a56b..6e38260 100644 --- a/src/Cake.Issues.Reporting.Console/FileSystemRepository.cs +++ b/src/Cake.Issues.Reporting.Console/FileSystemRepository.cs @@ -2,7 +2,6 @@ { using System; using System.Collections.Generic; - using System.Diagnostics.CodeAnalysis; using System.IO; using Errata; @@ -24,7 +23,7 @@ public FileSystemRepository(ICreateIssueReportSettings settings) } /// - public bool TryGet(string id, [NotNullWhen(true)] out Source source) + public bool TryGet(string id, out Source source) { if (!this.cache.TryGetValue(id, out source)) {