Skip to content

Commit f7f88b9

Browse files
committed
1.0.7
1 parent f95328a commit f7f88b9

File tree

14 files changed

+91
-31
lines changed

14 files changed

+91
-31
lines changed

Chocolatey/GitHubReleaseNotes/GitHubReleaseNotes.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
2626
<!-- version should MATCH as closely as possible with the underlying software -->
2727
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
2828
<!-- 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. -->
29-
<version>1.0.6</version>
29+
<version>1.0.7</version>
3030
<!-- <packageSourceUrl>Where is this Chocolatey package located (think GitHub)? packageSourceUrl is highly recommended for the community feed</packageSourceUrl>-->
3131
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for compatibility reasons. It basically means you. -->
3232
<owners>Stef Heyenrath</owners>
@@ -39,7 +39,7 @@ This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Refe
3939
<!-- projectUrl is required for the community feed -->
4040
<projectUrl>https://github.com/StefH/GitHubReleaseNotes</projectUrl>
4141
<iconUrl>https://raw.githubusercontent.com/StefH/GitHubReleaseNotes/master/icon.png</iconUrl>
42-
<copyright>2018 - 2020 Stef Heyenrath</copyright>
42+
<copyright>2018 - 2021 Stef Heyenrath</copyright>
4343
<!-- If there is a license Url available, it is required for the community feed -->
4444
<licenseUrl>https://raw.githubusercontent.com/StefH/GitHubReleaseNotes/master/LICENSE</licenseUrl>
4545
<!--<requireLicenseAcceptance>true</requireLicenseAcceptance>-->

Chocolatey/GitHubReleaseNotes/HowTo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ choco apikey --key {KEY} --source https://push.chocolatey.org/
2828

2929
Then push:
3030
``` cmd
31-
choco push githubreleasenotes.1.0.6.nupkg --source https://push.chocolatey.org/
31+
choco push githubreleasenotes.1.0.7.nupkg --source https://push.chocolatey.org/
3232
```

Chocolatey/GitHubReleaseNotes/tools/VERIFICATION.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ To verify this package, follow these steps:
55
1] Right click the GitHubReleaseNotes.exe in Windows file explorer and go to the "Details" tab and check the following properties:
66
- File description GitHubReleaseNotes
77
- Type Application
8-
- File version 1.0.6
8+
- File version 1.0.7
99
- Product name GitHubReleaseNotes
10-
- Product version 1.0.6
10+
- Product version 1.0.7
1111
- Copyright Stef Heyenrath
1212
- Size 1.02 MB
13-
- Date modified 2020-11-15 11:49
13+
- Date modified 2021-02-20 08:55
1414
- Language Language Neutral
1515
- Original filename GitHubReleaseNotes.exe
1616

1717
2] Verify the SHA256 from the GitHubReleaseNotes.exe file (7zip can be used for this)
18-
- SHA256 118F41303D1BA7AB8A833CD062F6A426752382E06EA37651AB2E1D67B03F5453
18+
- SHA256 BFC5C38D2AD1BEFD1D74CD2C95D64D32C237F0AC80A1E2A15974F29C2E3DA6FA
1919

2020
3] For the changes in this release, see ReleaseNotes.md
2121

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</PropertyGroup>
55

66
<PropertyGroup>
7-
<Version>1.0.6</Version>
7+
<Version>1.0.7</Version>
88
<Description>Generate Release Notes from a GitHub project.</Description>
99
<Summary>Generate Release Notes from a GitHub project.</Summary>
1010
<Authors>Stef Heyenrath</Authors>

ReleaseNotes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# 1.0.7 (20 February 2021)
2+
- [#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)
3+
- [#16](https://github.com/StefH/GitHubReleaseNotes/issues/16) - String cannot be empty [bug]
4+
15
# 1.0.6 (15 November 2020)
26
- [#14](https://github.com/StefH/GitHubReleaseNotes/pull/14) - Support tag prefix and create dotnet tool contributed by [StefH](https://github.com/StefH)
7+
- [#15](https://github.com/StefH/GitHubReleaseNotes/pull/15) - Add WinGet project contributed by [StefH](https://github.com/StefH)
38

49
# 1.0.5.3 (27 March 2020)
510
- [#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)

ReleaseNotes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
GitHubReleaseNotes.exe --output ReleaseNotes.md --version 1.0.6 --skip-empty-releases
1+
GitHubReleaseNotes.exe --output ReleaseNotes.md --version 1.0.7 --skip-empty-releases

Wix/1.0.7.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Id: StefHeyenrath.GitHubReleaseNotes
2+
Version: 1.0.7
3+
Name: GitHubReleaseNotes
4+
AppMoniker: GitHubReleaseNotes
5+
Publisher: Stef Heyenrath
6+
License: MIT
7+
LicenseUrl: https://github.com/StefH/GitHubReleaseNotes/blob/master/LICENSE
8+
Homepage: https://github.com/StefH/GitHubReleaseNotes
9+
Description: Generate Release Notes in MarkDown format from a GitHub project.
10+
Tags: "github, markdown, releasenotes, changelog, tags, generate, md"
11+
InstallerType: Msi
12+
Installers:
13+
- Arch: x64
14+
Url: https://github.com/StefH/GitHubReleaseNotes/releases/download/1.0.7/Setup.msi
15+
Sha256: 9F88FA4BC999380A1C0A5A955AC06CC00A2BDDF75AA5FEA0AA2DE593F1348C60

Wix/HowTo.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,11 @@
77
- Build in release mode
88
- Build setup project
99

10-
## Generate YML
11-
Use LinqPad to generate the yml file
10+
## Generate yaml
11+
Use LinqPad to generate the yaml file
12+
13+
## Add yaml
14+
Add the new {version}.yaml to the soluton in the "Wix and winget-pkgs" folder
15+
16+
## Upload
17+
Create the new version and upload setup to https://github.com/StefH/GitHubReleaseNotes/releases

examples/System.Linq.Dynamic.Core.md

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,37 @@
1-
# v1.2.5 (15 November 2020)
1+
# v1.2.8 (20 February 2021)
2+
- [#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)
3+
- [#480](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/480) - Fix DynamicIndex implementation [bug] contributed by [StefH](https://github.com/StefH)
4+
- [#481](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/481) - Xamarin fix Enum [bug] contributed by [StefH](https://github.com/StefH)
5+
- [#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)
6+
- [#448](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/448) - Dynamic.DynamicIndex is exposed in the expression [bug]
7+
- [#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]
8+
- [#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]
9+
- [#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]
10+
11+
# v1.2.7 (26 December 2020)
12+
- [#462](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/462) - Add PatchVersion [feature] contributed by [StefH](https://github.com/StefH)
13+
- [#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)
14+
- [#464](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/464) - NullPropagation operator: support nullable DateTime contributed by [StefH](https://github.com/StefH)
15+
- [#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)
16+
- [#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)
17+
- [#470](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/470) - Add EF 5 NuGet package [feature] contributed by [StefH](https://github.com/StefH)
18+
- [#424](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/424) - How to GroupBy Nullable DateTime Year? [bug]
19+
- [#459](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/459) - Allow `as` and `is` to use instances of `System.Type` [feature]
20+
- [#465](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/465) - Crash on Android (regression in 1.2.6) [bug]
21+
- [#468](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/468) - net5.0 OrderBy problem [bug]
22+
- [#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]
23+
24+
# v1.2.6 (22 November 2020)
225
- [#443](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/443) - Fix MethodCallExpression when using NullPropagating (np) contributed by [StefH](https://github.com/StefH)
326
- [#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)
427
- [#446](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/446) - Remove MyGet links from Readme.md contributed by [StefH](https://github.com/StefH)
528
- [#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)
629
- [#449](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/449) - Fix DateTime constructor using ticks [bug] contributed by [StefH](https://github.com/StefH)
730
- [#450](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/450) - Support the enum UriKind [feature] contributed by [StefH](https://github.com/StefH)
8-
- [#392](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/392) - Dynamic LINQ - Repository Future
31+
- [#284](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/284) - String(Null) raises Ambiguous error [bug]
932
- [#432](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/432) - Clarify error message when using np with instance methods [bug]
1033
- [#439](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/439) - Question: DateTime constructor using ticks [bug]
34+
- [#442](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/442) - UriKind is not recognized in Uri constructor [bug]
1135

1236
# v1.2.5 (24 October 2020)
1337
- [#430](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/430) - Documentation: internal links are broken [documentation]
@@ -18,11 +42,10 @@
1842
# v1.2.3 (11 October 2020)
1943
- [#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)
2044
- [#230](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/230) - Request for contribution
21-
- [#403](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/403) - Expression is missing an 'as' clause
45+
- [#403](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/403) - Expression is missing an 'as' clause [bug]
2246
- [#406](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/406) - Expression parameter should be case sensitive
23-
- [#410](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/410) - Methods on type 'JsonElement' are not accessible'.
47+
- [#410](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/410) - Methods on type 'JsonElement' are not accessible'. [wontfix]
2448
- [#411](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/411) - Can't apply the library while using reflection emit with dynamic linq
25-
- [#413](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/413) - Requested value not found error on List&lt;Enums&gt;
2649
- [#414](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/414) - Contains search in an Enum
2750
- [#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
2851
- [#417](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/417) - Expression is missing an 'as' clause
@@ -69,12 +92,11 @@
6992
- [#380](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/380) - save contributed by [Lempireqc](https://github.com/Lempireqc)
7093
- [#381](https://github.com/zzzprojects/System.Linq.Dynamic.Core/pull/381) - save contributed by [Lempireqc](https://github.com/Lempireqc)
7194
- [#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)
72-
- [#334](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/334) - Shadow properties
73-
- [#378](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/378) - Versioning Issue in Latest NUGET packages
95+
- [#378](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/378) - Versioning Issue in Latest NUGET packages [bug]
7496

7597
# v1.1.1 (14 May 2020)
7698
- [#54](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/54) - Documentation for expression syntax [documentation]
77-
- [#110](https://github.com/zzzprojects/System.Linq.Dynamic.Core/issues/110) - Complex query, like in ParseLambda_Complex_2, internal could only be used once
99+
- [#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]
78100

79101
# 1.1.0.0 (25 April 2020)
80102
- [#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)

src/GitHubReleaseNotes.Logic/RepositoryHelper.cs

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public class RepositoryHelper
1313
{
1414
private const int DeltaSeconds = 30;
1515

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

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

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

177-
if (url.StartsWith("git@github.com:"))
179+
if (!TryGetValue(groups, "ownerHttps", "ownerSSH", out owner) || !TryGetValue(groups, "projectHttps", "projectSSH", out project))
178180
{
179-
pattern = @"^git@github.com:(?<owner>.+)\/(?<project>.+).git$";
181+
throw new UriFormatException($"The url '{url}' is not a valid GitHub url, the Owner and or Project are not present.");
180182
}
181-
182-
var regex = new Regex(pattern, RegexOptions.Compiled);
183-
184-
owner = regex.Match(url).Groups["owner"].Value;
185-
project = regex.Match(url).Groups["project"].Value;
186183
}
187184

188-
189185
private static long? GetVersionAsLong(string friendlyName)
190186
{
191187
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
196192

197193
return null;
198194
}
195+
196+
private static bool TryGetValue(GroupCollection groups, string groupName1, string groupName2, out string value)
197+
{
198+
value = groups[groupName1].Value;
199+
if (!string.IsNullOrEmpty(value))
200+
{
201+
return true;
202+
}
203+
204+
value = groups[groupName2].Value;
205+
if (!string.IsNullOrEmpty(value))
206+
{
207+
return true;
208+
}
209+
210+
return false;
211+
}
199212
}
200213
}

0 commit comments

Comments
 (0)