add data label to auto-gen Issue

This commit is contained in:
Collin M. Barrett 2019-07-02 15:12:35 -05:00
parent 044e86b0ae
commit a02e32861c

View file

@ -25,6 +25,7 @@ public class Handler : AsyncRequestHandler<Command>
{
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);