Skip to content

Commit cbb1256

Browse files
committed
Update the validate release command to improve the documentation issue discovery
1 parent 517e591 commit cbb1256

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

NuGetReleaseTool/NuGetReleaseTool/ValidateReleaseCommand/ValidateReleaseCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private static void WriteResultLine(string section, (Status, string) result)
123123
private async Task<(Status, string)> ValidateDocumentationReadinessAsync()
124124
{
125125
// For a given ID/branch, get all of the linked documentation PRs that are still open.
126-
string[] issueRepositories = new string[] { $"{Constants.NuGet}/{Constants.DocsRepo}" };
126+
string[] issueRepositories = new string[] { $"{Constants.NuGet}/{Constants.Home}" };
127127

128128
var githubCommits = await Helpers.GetCommitsForRelease(GitHubClient, Options.Release, Options.EndCommit);
129129

@@ -135,8 +135,8 @@ private static void WriteResultLine(string section, (Status, string) result)
135135
{
136136
foreach (var issue in commit.Issues)
137137
{
138-
var ghIssue = await GitHubClient.Issue.Get(Constants.NuGet, Constants.DocsRepo, issue.Item1);
139-
if (ghIssue.State == ItemState.Open)
138+
var ghIssue = await GitHubClient.Issue.Get(Constants.NuGet, Constants.Home, issue.Item1);
139+
if (ghIssue.State == ItemState.Open && ghIssue.Labels.Any(e => e.Name.Equals("Type:Docs")))
140140
{
141141
urls.Add(issue.Item2);
142142
}

0 commit comments

Comments
 (0)