コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 public static API_GitHub_Issues close(this API_GitHub_Issues gitHubIssues, int id)
 {
     gitHubIssues.refreshCacher();
     gitHubIssues.IssuesAPI.Close(gitHubIssues.Repository, "", id);
     return(gitHubIssues);
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 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);
 }
コード例 #7
0
 public static List <Comment> comments(this API_GitHub_Issues gitHubIssues, int id)
 {
     gitHubIssues.refreshCacher();
     return(gitHubIssues.IssuesAPI.Comments(gitHubIssues.Repository, "", id).toList());
 }