From a02e32861ca94454a4d9ce8e83ab498012d45db7 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 2 Jul 2019 15:12:35 -0500 Subject: [PATCH] add data label to auto-gen Issue --- .../Features/Urls/CreateOrUpdateGitHubIssue.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Agent/Features/Urls/CreateOrUpdateGitHubIssue.cs b/src/FilterLists.Agent/Features/Urls/CreateOrUpdateGitHubIssue.cs index 86054b8ce..e5ed5444f 100644 --- a/src/FilterLists.Agent/Features/Urls/CreateOrUpdateGitHubIssue.cs +++ b/src/FilterLists.Agent/Features/Urls/CreateOrUpdateGitHubIssue.cs @@ -25,6 +25,7 @@ public class Handler : AsyncRequestHandler { private const string AgentBotLabel = "agent bot"; private const string HelpWantedLabel = "help wanted"; + private const string DataLabel = "data"; private const string IssueTitle = "Url Validation Errors"; private readonly IAgentGitHubClient _gitHubClient; private readonly IMediator _mediator; @@ -63,8 +64,9 @@ private async Task UpdateIssue(Issue issue, CancellationToken cancellationToken) { var updateIssue = issue.ToUpdate(); - updateIssue.AddLabel(AgentBotLabel); updateIssue.AddLabel(HelpWantedLabel); + updateIssue.AddLabel(AgentBotLabel); + updateIssue.AddLabel(DataLabel); updateIssue.Body = await _mediator.Send(new BuildGitHubIssueBody.Command(dataFileUrlValidationResults), cancellationToken); await _gitHubClient.UpdateIssue(issue.Number, updateIssue);