Skip to content

Commit

Permalink
1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Feb 20, 2021
1 parent f95328a commit f7f88b9
Show file tree
Hide file tree
Showing 14 changed files with 91 additions and 31 deletions.
4 changes: 2 additions & 2 deletions Chocolatey/GitHubReleaseNotes/GitHubReleaseNotes.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
<!-- version should MATCH as closely as possible with the underlying software -->
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. -->
<version>1.0.6</version>
<version>1.0.7</version>
<!-- <packageSourceUrl>Where is this Chocolatey package located (think GitHub)? packageSourceUrl is highly recommended for the community feed</packageSourceUrl>-->
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for compatibility reasons. It basically means you. -->
<owners>Stef Heyenrath</owners>
Expand All @@ -39,7 +39,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
<!-- projectUrl is required for the community feed -->
<projectUrl>https://github.com/StefH/GitHubReleaseNotes</projectUrl>
<iconUrl>https://raw.githubusercontent.com/StefH/GitHubReleaseNotes/master/icon.png</iconUrl>
<copyright>2018 - 2020 Stef Heyenrath</copyright>
<copyright>2018 - 2021 Stef Heyenrath</copyright>
<!-- If there is a license Url available, it is required for the community feed -->
<licenseUrl>https://raw.githubusercontent.com/StefH/GitHubReleaseNotes/master/LICENSE</licenseUrl>
<!--<requireLicenseAcceptance>true</requireLicenseAcceptance>-->
Expand Down
2 changes: 1 addition & 1 deletion Chocolatey/GitHubReleaseNotes/HowTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/
```
8 changes: 4 additions & 4 deletions Chocolatey/GitHubReleaseNotes/tools/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.6</Version>
<Version>1.0.7</Version>
<Description>Generate Release Notes from a GitHub project.</Description>
<Summary>Generate Release Notes from a GitHub project.</Summary>
<Authors>Stef Heyenrath</Authors>
Expand Down
5 changes: 5 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -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: &quot;System.InvalidOperationException: Sequence contains no matching element&quot; [bug] contributed by [StefH](https://github.com/StefH)
Expand Down
2 changes: 1 addition & 1 deletion ReleaseNotes.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
GitHubReleaseNotes.exe --output ReleaseNotes.md --version 1.0.6 --skip-empty-releases
GitHubReleaseNotes.exe --output ReleaseNotes.md --version 1.0.7 --skip-empty-releases
15 changes: 15 additions & 0 deletions Wix/1.0.7.yaml
Original file line number Diff line number Diff line change
@@ -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
10 changes: 8 additions & 2 deletions Wix/HowTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
- Build in release mode
- Build setup project

## Generate YML
Use LinqPad to generate the yml 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
38 changes: 30 additions & 8 deletions examples/System.Linq.Dynamic.Core.md
Original file line number Diff line number Diff line change
@@ -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&lt;TSource&gt;(...) 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]
Expand All @@ -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&lt;Enums&gt;
- [#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) - &quot;Target object is not an ExpandoObject&quot; exception being thrown when using GroupBy
- [#417](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/417) - Expression is missing an 'as' clause
Expand Down Expand Up @@ -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)
Expand Down
31 changes: 22 additions & 9 deletions src/GitHubReleaseNotes.Logic/RepositoryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class RepositoryHelper
{
private const int DeltaSeconds = 30;

private static readonly Regex OwnerAndProjectRegex = new Regex("(^https:\\/\\/github\\.com\\/(?<ownerHttps>.+)\\/(?<projectHttps>.+)\\.git)|(^git@github\\.com:(?<ownerSSH>.+)\\/(?<projectSSH>.+)\\.git$)$", RegexOptions.Compiled);

private readonly IConfiguration _configuration;

public RepositoryHelper(IConfiguration configuration)
Expand Down Expand Up @@ -172,20 +174,14 @@ private async Task<ICollection<PullRequest>> GetMergedPullRequestsForRepositoryA

private static void GetOwnerAndProject(string url, out string owner, out string project)
{
string pattern = @"^https:\/\/github.com\/(?<owner>.+)\/(?<project>.+).git$";
var groups = OwnerAndProjectRegex.Match(url).Groups;

if (url.StartsWith("[email protected]:"))
if (!TryGetValue(groups, "ownerHttps", "ownerSSH", out owner) || !TryGetValue(groups, "projectHttps", "projectSSH", out project))
{
pattern = @"^[email protected]:(?<owner>.+)\/(?<project>.+).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());
Expand All @@ -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;
}
}
}
1 change: 1 addition & 0 deletions src/GitHubReleaseNotes.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Version>0.0.3</Version>
<OutputType>Exe</OutputType>
<TargetFramework>net5</TargetFramework>
<PackAsTool>true</PackAsTool>
Expand Down
1 change: 0 additions & 1 deletion src/dotnet-githubreleasenotes/Program.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

0 comments on commit f7f88b9

Please sign in to comment.