mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add data label to auto-gen Issue
This commit is contained in:
parent
044e86b0ae
commit
a02e32861c
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue