diff --git a/Chocolatey/GitHubReleaseNotes/GitHubReleaseNotes.nuspec b/Chocolatey/GitHubReleaseNotes/GitHubReleaseNotes.nuspec index 6f79883..fb3c005 100644 --- a/Chocolatey/GitHubReleaseNotes/GitHubReleaseNotes.nuspec +++ b/Chocolatey/GitHubReleaseNotes/GitHubReleaseNotes.nuspec @@ -26,7 +26,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe - 1.0.6 + 1.0.7 Stef Heyenrath @@ -39,7 +39,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe https://github.com/StefH/GitHubReleaseNotes https://raw.githubusercontent.com/StefH/GitHubReleaseNotes/master/icon.png - 2018 - 2020 Stef Heyenrath + 2018 - 2021 Stef Heyenrath https://raw.githubusercontent.com/StefH/GitHubReleaseNotes/master/LICENSE diff --git a/Chocolatey/GitHubReleaseNotes/HowTo.md b/Chocolatey/GitHubReleaseNotes/HowTo.md index fe6eb92..798482d 100644 --- a/Chocolatey/GitHubReleaseNotes/HowTo.md +++ b/Chocolatey/GitHubReleaseNotes/HowTo.md @@ -28,5 +28,5 @@ choco apikey --key {KEY} --source https://push.chocolatey.org/ Then push: ``` cmd -choco push githubreleasenotes.1.0.6.nupkg --source https://push.chocolatey.org/ +choco push githubreleasenotes.1.0.7.nupkg --source https://push.chocolatey.org/ ``` \ No newline at end of file diff --git a/Chocolatey/GitHubReleaseNotes/tools/VERIFICATION.txt b/Chocolatey/GitHubReleaseNotes/tools/VERIFICATION.txt index 38f887d..8fb4755 100644 --- a/Chocolatey/GitHubReleaseNotes/tools/VERIFICATION.txt +++ b/Chocolatey/GitHubReleaseNotes/tools/VERIFICATION.txt @@ -5,17 +5,17 @@ To verify this package, follow these steps: 1] Right click the GitHubReleaseNotes.exe in Windows file explorer and go to the "Details" tab and check the following properties: - File description GitHubReleaseNotes - Type Application - - File version 1.0.6 + - File version 1.0.7 - Product name GitHubReleaseNotes - - Product version 1.0.6 + - Product version 1.0.7 - Copyright Stef Heyenrath - Size 1.02 MB - - Date modified 2020-11-15 11:49 + - Date modified 2021-02-20 08:55 - Language Language Neutral - Original filename GitHubReleaseNotes.exe 2] Verify the SHA256 from the GitHubReleaseNotes.exe file (7zip can be used for this) - - SHA256 118F41303D1BA7AB8A833CD062F6A426752382E06EA37651AB2E1D67B03F5453 + - SHA256 BFC5C38D2AD1BEFD1D74CD2C95D64D32C237F0AC80A1E2A15974F29C2E3DA6FA 3] For the changes in this release, see ReleaseNotes.md diff --git a/Directory.Build.props b/Directory.Build.props index c711e4e..bf80deb 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -4,7 +4,7 @@ - 1.0.6 + 1.0.7 Generate Release Notes from a GitHub project. Generate Release Notes from a GitHub project. Stef Heyenrath diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 06d06af..488cb4f 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,10 @@ +# 1.0.7 (20 February 2021) +- [#17](https://github.com/StefH/GitHubReleaseNotes/pull/17) - Fix issue where ssh remote urls don't work [bug] contributed by [jpann](https://github.com/jpann) +- [#16](https://github.com/StefH/GitHubReleaseNotes/issues/16) - String cannot be empty [bug] + # 1.0.6 (15 November 2020) - [#14](https://github.com/StefH/GitHubReleaseNotes/pull/14) - Support tag prefix and create dotnet tool contributed by [StefH](https://github.com/StefH) +- [#15](https://github.com/StefH/GitHubReleaseNotes/pull/15) - Add WinGet project contributed by [StefH](https://github.com/StefH) # 1.0.5.3 (27 March 2020) - [#13](https://github.com/StefH/GitHubReleaseNotes/pull/13) - Fixed: "System.InvalidOperationException: Sequence contains no matching element" [bug] contributed by [StefH](https://github.com/StefH) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index b251b53..2ed87b1 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1 +1 @@ -GitHubReleaseNotes.exe --output ReleaseNotes.md --version 1.0.6 --skip-empty-releases \ No newline at end of file +GitHubReleaseNotes.exe --output ReleaseNotes.md --version 1.0.7 --skip-empty-releases \ No newline at end of file diff --git a/Wix/1.0.7.yaml b/Wix/1.0.7.yaml new file mode 100644 index 0000000..d78d54f --- /dev/null +++ b/Wix/1.0.7.yaml @@ -0,0 +1,15 @@ +Id: StefHeyenrath.GitHubReleaseNotes +Version: 1.0.7 +Name: GitHubReleaseNotes +AppMoniker: GitHubReleaseNotes +Publisher: Stef Heyenrath +License: MIT +LicenseUrl: https://github.com/StefH/GitHubReleaseNotes/blob/master/LICENSE +Homepage: https://github.com/StefH/GitHubReleaseNotes +Description: Generate Release Notes in MarkDown format from a GitHub project. +Tags: "github, markdown, releasenotes, changelog, tags, generate, md" +InstallerType: Msi +Installers: + - Arch: x64 + Url: https://github.com/StefH/GitHubReleaseNotes/releases/download/1.0.7/Setup.msi + Sha256: 9F88FA4BC999380A1C0A5A955AC06CC00A2BDDF75AA5FEA0AA2DE593F1348C60 \ No newline at end of file diff --git a/Wix/HowTo.md b/Wix/HowTo.md index 3bf3ece..9e4c17b 100644 --- a/Wix/HowTo.md +++ b/Wix/HowTo.md @@ -7,5 +7,11 @@ - Build in release mode - Build setup project -## Generate YML -Use LinqPad to generate the yml file \ No newline at end of file +## Generate yaml +Use LinqPad to generate the yaml file + +## Add yaml +Add the new {version}.yaml to the soluton in the "Wix and winget-pkgs" folder + +## Upload +Create the new version and upload setup to https://github.com/StefH/GitHubReleaseNotes/releases \ No newline at end of file diff --git a/examples/System.Linq.Dynamic.Core.md b/examples/System.Linq.Dynamic.Core.md index f7cfa48..aaf6de2 100644 --- a/examples/System.Linq.Dynamic.Core.md +++ b/examples/System.Linq.Dynamic.Core.md @@ -1,13 +1,37 @@ -# v1.2.5 (15 November 2020) +# v1.2.8 (20 February 2021) +- [#455](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/455) - Ensure action delegate allows call to void methods contributed by [glopesdev](https://github.com/glopesdev) +- [#480](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/480) - Fix DynamicIndex implementation [bug] contributed by [StefH](https://github.com/StefH) +- [#481](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/481) - Xamarin fix Enum [bug] contributed by [StefH](https://github.com/StefH) +- [#484](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/484) - Implement support for anonymous types as dynamic objects [bug] contributed by [hazzik](https://github.com/hazzik) +- [#448](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/448) - Dynamic.DynamicIndex is exposed in the expression [bug] +- [#457](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/457) - Allow use of `as` and `is` on arbitrary expressions, not just the parameter [wontfix] +- [#458](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/458) - Documentation: `Is` and `As` should be documented with the rest of the expression language [documentation] +- [#479](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/479) - Xamarin.Forms - DynamicExpressionParser.ParseLambda fails when comparing enum properties by their int value [bug] + +# v1.2.7 (26 December 2020) +- [#462](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/462) - Add PatchVersion [feature] contributed by [StefH](https://github.com/StefH) +- [#463](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/463) - Add extension method Where<TSource>(...) with LambdaExpression [feature] contributed by [StefH](https://github.com/StefH) +- [#464](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/464) - NullPropagation operator: support nullable DateTime contributed by [StefH](https://github.com/StefH) +- [#466](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/466) - Fix Android issue (Could not load the file 'System.Private.Corelib') [bug] contributed by [StefH](https://github.com/StefH) +- [#467](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/467) - Support 'System.Type' in As, Is, Cast and OfType [feature] contributed by [StefH](https://github.com/StefH) +- [#470](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/470) - Add EF 5 NuGet package [feature] contributed by [StefH](https://github.com/StefH) +- [#424](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/424) - How to GroupBy Nullable DateTime Year? [bug] +- [#459](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/459) - Allow `as` and `is` to use instances of `System.Type` [feature] +- [#465](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/465) - Crash on Android (regression in 1.2.6) [bug] +- [#468](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/468) - net5.0 OrderBy problem [bug] +- [#473](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/473) - Exception in System.Linq.Dynamic.Core.Parser.EnumerationsFromMscorlib after update to 1.2.6 [bug] + +# v1.2.6 (22 November 2020) - [#443](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/443) - Fix MethodCallExpression when using NullPropagating (np) contributed by [StefH](https://github.com/StefH) - [#445](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/445) - Add GitHub action for ci build + unit tests contributed by [StefH](https://github.com/StefH) - [#446](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/446) - Remove MyGet links from Readme.md contributed by [StefH](https://github.com/StefH) - [#447](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/447) - Fix Unit tests for net452 and net461 contributed by [StefH](https://github.com/StefH) - [#449](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/449) - Fix DateTime constructor using ticks [bug] contributed by [StefH](https://github.com/StefH) - [#450](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/450) - Support the enum UriKind [feature] contributed by [StefH](https://github.com/StefH) -- [#392](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/392) - Dynamic LINQ - Repository Future +- [#284](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/284) - String(Null) raises Ambiguous error [bug] - [#432](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/432) - Clarify error message when using np with instance methods [bug] - [#439](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/439) - Question: DateTime constructor using ticks [bug] +- [#442](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/442) - UriKind is not recognized in Uri constructor [bug] # v1.2.5 (24 October 2020) - [#430](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/430) - Documentation: internal links are broken [documentation] @@ -18,11 +42,10 @@ # v1.2.3 (11 October 2020) - [#428](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/428) - Add support for IQueryable.Min and .Max contributed by [gregfullman](https://github.com/gregfullman) - [#230](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/230) - Request for contribution -- [#403](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/403) - Expression is missing an 'as' clause +- [#403](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/403) - Expression is missing an 'as' clause [bug] - [#406](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/406) - Expression parameter should be case sensitive -- [#410](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/410) - Methods on type 'JsonElement' are not accessible'. +- [#410](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/410) - Methods on type 'JsonElement' are not accessible'. [wontfix] - [#411](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/411) - Can't apply the library while using reflection emit with dynamic linq -- [#413](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/413) - Requested value not found error on List<Enums> - [#414](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/414) - Contains search in an Enum - [#416](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/416) - "Target object is not an ExpandoObject" exception being thrown when using GroupBy - [#417](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/417) - Expression is missing an 'as' clause @@ -69,12 +92,11 @@ - [#380](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/380) - save contributed by [Lempireqc](https://github.com/Lempireqc) - [#381](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/381) - save contributed by [Lempireqc](https://github.com/Lempireqc) - [#383](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/383) - Fixed : calling methods which return a nullable [bug] contributed by [StefH](https://github.com/StefH) -- [#334](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/334) - Shadow properties -- [#378](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/378) - Versioning Issue in Latest NUGET packages +- [#378](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/378) - Versioning Issue in Latest NUGET packages [bug] # v1.1.1 (14 May 2020) - [#54](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/54) - Documentation for expression syntax [documentation] -- [#110](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/110) - Complex query, like in ParseLambda_Complex_2, internal could only be used once +- [#110](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/110) - Complex query, like in ParseLambda_Complex_2, internal could only be used once [wontfix] # 1.1.0.0 (25 April 2020) - [#326](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/326) - Fixes for parsing escaped / quoted strings [bug] contributed by [StefH](https://github.com/StefH) diff --git a/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs b/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs index ef9a4e0..38dbc01 100644 --- a/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs +++ b/src/GitHubReleaseNotes.Logic/RepositoryHelper.cs @@ -13,6 +13,8 @@ public class RepositoryHelper { private const int DeltaSeconds = 30; + private static readonly Regex OwnerAndProjectRegex = new Regex("(^https:\\/\\/github\\.com\\/(?.+)\\/(?.+)\\.git)|(^git@github\\.com:(?.+)\\/(?.+)\\.git$)$", RegexOptions.Compiled); + private readonly IConfiguration _configuration; public RepositoryHelper(IConfiguration configuration) @@ -172,20 +174,14 @@ private async Task> GetMergedPullRequestsForRepositoryA private static void GetOwnerAndProject(string url, out string owner, out string project) { - string pattern = @"^https:\/\/github.com\/(?.+)\/(?.+).git$"; + var groups = OwnerAndProjectRegex.Match(url).Groups; - if (url.StartsWith("git@github.com:")) + if (!TryGetValue(groups, "ownerHttps", "ownerSSH", out owner) || !TryGetValue(groups, "projectHttps", "projectSSH", out project)) { - pattern = @"^git@github.com:(?.+)\/(?.+).git$"; + throw new UriFormatException($"The url '{url}' is not a valid GitHub url, the Owner and or Project are not present."); } - - var regex = new Regex(pattern, RegexOptions.Compiled); - - owner = regex.Match(url).Groups["owner"].Value; - project = regex.Match(url).Groups["project"].Value; } - private static long? GetVersionAsLong(string friendlyName) { var versionAsString = new string(friendlyName.Where(c => char.IsDigit(c) || c == '.').ToArray()); @@ -196,5 +192,22 @@ private static void GetOwnerAndProject(string url, out string owner, out string return null; } + + private static bool TryGetValue(GroupCollection groups, string groupName1, string groupName2, out string value) + { + value = groups[groupName1].Value; + if (!string.IsNullOrEmpty(value)) + { + return true; + } + + value = groups[groupName2].Value; + if (!string.IsNullOrEmpty(value)) + { + return true; + } + + return false; + } } } \ No newline at end of file diff --git a/src/GitHubReleaseNotes.sln b/src/GitHubReleaseNotes.sln index 2ca2ea0..a1e40e5 100644 --- a/src/GitHubReleaseNotes.sln +++ b/src/GitHubReleaseNotes.sln @@ -46,6 +46,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Wix and winget-pkgs", "Wix ProjectSection(SolutionItems) = preProject ..\Wix\1.0.5.3.yaml = ..\Wix\1.0.5.3.yaml ..\Wix\1.0.6.yaml = ..\Wix\1.0.6.yaml + ..\Wix\1.0.7.yaml = ..\Wix\1.0.7.yaml ..\Wix\generate manifest.linq = ..\Wix\generate manifest.linq ..\Wix\HowTo.md = ..\Wix\HowTo.md EndProjectSection diff --git a/src/dotnet-githubreleasenotes/GitHubReleaseNotes.Tool.csproj b/src/dotnet-githubreleasenotes/GitHubReleaseNotes.Tool.csproj index e2a5471..bc7e7c8 100644 --- a/src/dotnet-githubreleasenotes/GitHubReleaseNotes.Tool.csproj +++ b/src/dotnet-githubreleasenotes/GitHubReleaseNotes.Tool.csproj @@ -1,7 +1,6 @@  - 0.0.3 Exe net5 true diff --git a/src/dotnet-githubreleasenotes/Program.cs b/src/dotnet-githubreleasenotes/Program.cs index 2fffe28..c45af2c 100644 --- a/src/dotnet-githubreleasenotes/Program.cs +++ b/src/dotnet-githubreleasenotes/Program.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.IO; using System.Reflection; using System.Threading.Tasks; using CommandLine; diff --git a/src/dotnet-githubreleasenotes/Properties/launchSettings.json b/src/dotnet-githubreleasenotes/Properties/launchSettings.json index 8ed051f..a3b761b 100644 --- a/src/dotnet-githubreleasenotes/Properties/launchSettings.json +++ b/src/dotnet-githubreleasenotes/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "GitHubReleaseNotes.Tool": { "commandName": "Project", - "commandLineArgs": "--path \"C:\\Users\\StefHeyenrath\\Documents\\Github\\System.Linq.Dynamic.Core\" --output ../../../../../examples/System.Linq.Dynamic.Core.md --skip-empty-releases --exclude-labels invalid question --language en --version v1.2.5" + "commandLineArgs": "--path \"C:\\Users\\StefHeyenrath\\Documents\\Github\\System.Linq.Dynamic.Core\" --output ../../../../../examples/System.Linq.Dynamic.Core.md --skip-empty-releases --exclude-labels invalid question --language en --version v1.2.8" } } } \ No newline at end of file