File tree Expand file tree Collapse file tree
NuGetReleaseTool/NuGetReleaseTool
GenerateReleaseNotesCommand Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using Octokit ;
2- using System . Collections . Generic ;
32using System . Text ;
43using System . Text . RegularExpressions ;
4+ using System . Web ;
55
66namespace NuGetReleaseTool . GenerateReleaseNotesCommand
77{
@@ -307,7 +307,7 @@ private static void OutputCommunityPullRequestsSection(
307307 Dictionary < string , List < PullRequest > > pullRequestsByContributors = new ( ) ;
308308 foreach ( var pullRequest in communityPullRequests )
309309 {
310- if ( ! pullRequestsByContributors . TryGetValue ( pullRequest . User . Login , out List < PullRequest > pullRequests ) )
310+ if ( ! pullRequestsByContributors . TryGetValue ( pullRequest . User . Login , out List < PullRequest > ? pullRequests ) )
311311 {
312312 pullRequests = new List < PullRequest > ( ) ;
313313 pullRequestsByContributors . Add ( pullRequest . User . Login , pullRequests ) ;
@@ -357,7 +357,7 @@ private static void OutputSection(
357357
358358 foreach ( var issue in issues )
359359 {
360- builder . AppendLine ( "* " + issue . Title + " - " + "[#" + issue . Number + "](" + issue . HtmlUrl + ")" ) ;
360+ builder . AppendLine ( "* " + HttpUtility . HtmlEncode ( issue . Title ) + " - " + "[#" + issue . Number + "](" + issue . HtmlUrl + ")" ) ;
361361 builder . AppendLine ( ) ;
362362 }
363363 }
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ public static async Task<List<CommitWithDetails>> GetCommitDetails(GitHubClient
112112
113113 if ( pullRequestbody == null )
114114 {
115- Console . WriteLine ( $ "PR contains contains no body message: { commit ? . PR ? . Item2 } ") ;
115+ Console . WriteLine ( $ "PR contains contains no body message: { commit . PR ? . Item2 } ") ;
116116 }
117117 else
118118 {
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net7 .0</TargetFramework >
5+ <TargetFramework >net8 .0</TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88 </PropertyGroup >
99
1010 <ItemGroup >
11- <PackageReference Include =" CommandLineParser" Version =" 2.7.82 " />
11+ <PackageReference Include =" CommandLineParser" Version =" 2.9.1 " />
1212 <PackageReference Include =" octokit" Version =" 11.0.1" />
13- <PackageReference Include =" NuGet.Commands" Version =" 6.9 .1" />
13+ <PackageReference Include =" NuGet.Commands" Version =" 6.11 .1" />
1414 </ItemGroup >
1515</Project >
You can’t perform that action at this time.
0 commit comments