tgstation-server 6.9.2
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IGitHubClientFactory.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
4using Octokit;
5
7{
11 public interface IGitHubClientFactory
12 {
18 ValueTask<IGitHubClient> CreateClient(CancellationToken cancellationToken);
19
26 ValueTask<IGitHubClient> CreateClient(string accessToken, CancellationToken cancellationToken);
27
35 ValueTask<IGitHubClient?> CreateInstallationClient(string pem, long repositoryId, CancellationToken cancellationToken);
36 }
37}
ValueTask< IGitHubClient > CreateClient(CancellationToken cancellationToken)
Create a IGitHubClient client. Low rate limit unless the server's GitHubAccessToken is set to bypass ...
ValueTask< IGitHubClient?> CreateInstallationClient(string pem, long repositoryId, CancellationToken cancellationToken)
Creates a GitHub App client for an installation.
ValueTask< IGitHubClient > CreateClient(string accessToken, CancellationToken cancellationToken)
Create a client with authentication using a personal access token.