File tree Expand file tree Collapse file tree
NuGetReleaseTool/NuGetReleaseTool Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using NuGetReleaseTool . GenerateInsertionChangelogCommand ;
1+ using NuGet . Protocol . Plugins ;
2+ using NuGetReleaseTool . GenerateInsertionChangelogCommand ;
23using Octokit ;
4+ using System ;
5+ using System . Collections . Generic ;
36using System . Text . RegularExpressions ;
47
58namespace NuGetReleaseTool
@@ -104,9 +107,18 @@ public static async Task<List<CommitWithDetails>> GetCommitDetails(GitHubClient
104107 {
105108 commit . PR = new Tuple < int , string > ( id , @"https://github.com/nuget/nuget.client/pull/" + id ) ;
106109 pullRequestbody = ( await gitHubClient . Repository . PullRequest . Get ( orgName , repoName , id ) ) . Body ;
110+
111+ }
112+
113+ if ( pullRequestbody == null )
114+ {
115+ Console . WriteLine ( $ "PR contains contains no body message: { commit ? . PR ? . Item2 } ") ;
116+ }
117+ else
118+ {
119+ UpdateCommitIssuesFromText ( commit , pullRequestbody , issueRepositories ) ;
107120 }
108121
109- UpdateCommitIssuesFromText ( commit , pullRequestbody , issueRepositories ) ;
110122 processedCommits . Add ( commit ) ;
111123 }
112124
You can’t perform that action at this time.
0 commit comments