Class GithubService
Inheritance
System.Object
GithubService
Namespace: CommonBotLibrary.Services
Assembly: cs.temp.dll.dll
Syntax
public class GithubService : IVersionControlService
Constructors
GithubService(String, String, String)
Constructs an
Declaration
public GithubService(string username = null, string repository = null, string oauth = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | Defaults to username in Tokens if null. |
System.String | repository | Defaults to repository in Tokens if null. |
System.String | oauth | Defaults to oauth in Tokens if null. |
Methods
CreateIssueAsync(String, String, String[])
Creates a new issue.
Declaration
public Task<bool> CreateIssueAsync(string title, string body = null, string[] labels = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | title | The title of the issue (required). |
System.String | body | The body of the issue. |
System.String[] | labels | A collection of labels to attempt to apply to the issue. |
Returns
Type | Description |
---|---|
Task<System.Boolean> | True if the issue was successfully created, false otherwise. |