public static List <Issue> issues(this API_GitHub_Issues gitHubIssues, IssueState state) { if (gitHubIssues.LoggedIn.isFalse()) { return(new List <Issue>()); } gitHubIssues.refreshCacher(); var issues = gitHubIssues.IssuesAPI.List(gitHubIssues.Repository, "", state) .toList(); if (issues.isNull()) { "There was a problem fetching the issues from repository {0}".error(gitHubIssues.Repository); return(new List <Issue>()); } "There were {0} issues with state {1} fetched from repository {2}".info(issues.size(), state, gitHubIssues.Repository); return(issues); }
public static API_GitHub_Issues add_Comment(this API_GitHub_Issues gitHubIssues, int id, string comment) { gitHubIssues.refreshCacher(); gitHubIssues.IssuesAPI.CommentOnIssue(gitHubIssues.Repository, "", id, comment); return(gitHubIssues); }
public static API_GitHub_Issues remove_Label(this API_GitHub_Issues gitHubIssues, int id, string label) { gitHubIssues.refreshCacher(); gitHubIssues.IssuesAPI.RemoveLabel(gitHubIssues.Repository, "", id, label); return(gitHubIssues); }
public static API_GitHub_Issues close(this API_GitHub_Issues gitHubIssues, int id) { gitHubIssues.refreshCacher(); gitHubIssues.IssuesAPI.Close(gitHubIssues.Repository, "", id); return(gitHubIssues); }
public static API_GitHub_Issues @new(this API_GitHub_Issues gitHubIssues, string title, string body) { gitHubIssues.refreshCacher(); gitHubIssues.IssuesAPI.Open(gitHubIssues.Repository, "", title, body); return(gitHubIssues); }
public static API_GitHub_Issues save(this API_GitHub_Issues gitHubIssues, int id, string title, string body) { gitHubIssues.refreshCacher(); gitHubIssues.IssuesAPI.Edit(gitHubIssues.Repository, "", id, title, body); return(gitHubIssues); }
public static List <Comment> comments(this API_GitHub_Issues gitHubIssues, int id) { gitHubIssues.refreshCacher(); return(gitHubIssues.IssuesAPI.Comments(gitHubIssues.Repository, "", id).toList()); }