diff --git a/src/FilterLists.Agent/Core/Interfaces/Clients/IAgentGitHubClient.cs b/src/FilterLists.Agent/Core/Interfaces/Clients/IAgentGitHubClient.cs index 66de03d05..b78704d59 100644 --- a/src/FilterLists.Agent/Core/Interfaces/Clients/IAgentGitHubClient.cs +++ b/src/FilterLists.Agent/Core/Interfaces/Clients/IAgentGitHubClient.cs @@ -6,10 +6,10 @@ namespace FilterLists.Agent.Core.Interfaces.Clients { public interface IAgentGitHubClient { - Task> GetAllIssues(RepositoryIssueRequest repositoryIssueRequest); + Task> GetAllIssuesAsync(RepositoryIssueRequest repositoryIssueRequest); - Task CreateIssue(NewIssue newIssue); + Task CreateIssueAsync(NewIssue newIssue); - Task UpdateIssue(int issueNumber, IssueUpdate issueUpdate); + Task UpdateIssueAsync(int issueNumber, IssueUpdate issueUpdate); } } \ No newline at end of file diff --git a/src/FilterLists.Agent/Features/Urls/CloseUrlValidationIssue.cs b/src/FilterLists.Agent/Features/Urls/CloseUrlValidationIssue.cs index df8009061..9f67fbe11 100644 --- a/src/FilterLists.Agent/Features/Urls/CloseUrlValidationIssue.cs +++ b/src/FilterLists.Agent/Features/Urls/CloseUrlValidationIssue.cs @@ -32,7 +32,7 @@ protected override async Task Handle(Command request, CancellationToken cancella updateIssue.State = ItemState.Closed; updateIssue.Body = issue.Body + "

Update:

This issue is being closed since all URLs seem to now be valid."; - await _gitHubClient.UpdateIssue(issue.Number, updateIssue); + await _gitHubClient.UpdateIssueAsync(issue.Number, updateIssue); } private async Task GetOpenIssueOrNull() @@ -43,7 +43,7 @@ private async Task GetOpenIssueOrNull() State = ItemStateFilter.Open, Labels = {AgentBotLabel} }; - return (await _gitHubClient.GetAllIssues(issueRequest)).FirstOrDefault(); + return (await _gitHubClient.GetAllIssuesAsync(issueRequest)).FirstOrDefault(); } } } diff --git a/src/FilterLists.Agent/Features/Urls/CreateOrUpdateUrlValidationIssue.cs b/src/FilterLists.Agent/Features/Urls/CreateOrUpdateUrlValidationIssue.cs index 771aeb941..377e34e02 100644 --- a/src/FilterLists.Agent/Features/Urls/CreateOrUpdateUrlValidationIssue.cs +++ b/src/FilterLists.Agent/Features/Urls/CreateOrUpdateUrlValidationIssue.cs @@ -50,13 +50,13 @@ private async Task GetOpenIssueOrNull() State = ItemStateFilter.Open, Labels = {AgentBotLabel} }; - return (await _gitHubClient.GetAllIssues(issueRequest)).FirstOrDefault(); + return (await _gitHubClient.GetAllIssuesAsync(issueRequest)).FirstOrDefault(); } private async Task CreateBaseIssue() { var newIssue = new NewIssue(IssueTitle); - return await _gitHubClient.CreateIssue(newIssue); + return await _gitHubClient.CreateIssueAsync(newIssue); } private async Task UpdateIssue(Issue issue, @@ -69,7 +69,7 @@ private async Task UpdateIssue(Issue issue, updateIssue.AddLabel(DataLabel); updateIssue.Body = await _mediator.Send(new BuildGitHubIssueBody.Command(dataFileUrlValidationResults), cancellationToken); - await _gitHubClient.UpdateIssue(issue.Number, updateIssue); + await _gitHubClient.UpdateIssueAsync(issue.Number, updateIssue); } } } diff --git a/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs b/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs index 68673fa09..13a94c635 100644 --- a/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs +++ b/src/FilterLists.Agent/Infrastructure/Clients/AgentGitHubClient.cs @@ -25,7 +25,7 @@ public AgentGitHubClient(IGitHubClient gitHubClient, IOptions gi _logger = logger; } - public async Task> GetAllIssues(RepositoryIssueRequest repositoryIssueRequest) + public async Task> GetAllIssuesAsync(RepositoryIssueRequest repositoryIssueRequest) { try { @@ -39,7 +39,7 @@ public async Task> GetAllIssues(RepositoryIssueRequest repo } } - public async Task CreateIssue(NewIssue newIssue) + public async Task CreateIssueAsync(NewIssue newIssue) { try { @@ -53,7 +53,7 @@ public async Task CreateIssue(NewIssue newIssue) } } - public async Task UpdateIssue(int issueNumber, IssueUpdate issueUpdate) + public async Task UpdateIssueAsync(int issueNumber, IssueUpdate issueUpdate) { try {