当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript GHRepository.list方法代码示例

本文整理汇总了TypeScript中gh-issues-api.GHRepository.list方法的典型用法代码示例。如果您正苦于以下问题:TypeScript GHRepository.list方法的具体用法?TypeScript GHRepository.list怎么用?TypeScript GHRepository.list使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在gh-issues-api.GHRepository的用法示例。


在下文中一共展示了GHRepository.list方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: FilterCollection

 var promises = labels.map(label => {
   var filterCollection = new FilterCollection();
   filterCollection.label = new IssueLabelFilter(label);
   return Promise.all([
     repo.list(IssueType.All, IssueState.Open, filterCollection).then(issues => report[label] = issues.length),
     repo.list(IssueType.All, IssueState.Open).then(issues => report['total'] = issues.length)
   ]);
 });
开发者ID:pierreca,项目名称:dashboards,代码行数:8,代码来源:shiproom_report.ts

示例2: function

var countcmd = function(params: Array<string>) {
    var query = translateParams(params);
    repo.list(query.type, query.state, query.filters).then(issues => {
        console.log(issues.length);
        startPrompt();
    });
};
开发者ID:pierreca,项目名称:dashboards,代码行数:7,代码来源:ghprompt.ts

示例3:

 .then(() => repo.list(IssueType.Issue, IssueState.Open, notUpdated))
开发者ID:pierreca,项目名称:dashboards,代码行数:1,代码来源:stale_issues.ts

示例4:

repo.loadAllIssues().then(() => {
    return Promise.all([
        repo.list(IssueType.Issue, IssueState.Open),
        repo.list(IssueType.Issue, IssueState.Closed),
        repo.list(IssueType.PullRequest, IssueState.Open),
        repo.list(IssueType.PullRequest, IssueState.Closed),
        repo.list(IssueType.Issue, IssueState.All, createdLastWeek),
        repo.list(IssueType.Issue, IssueState.Open, updatedLastWeek),
        repo.list(IssueType.Issue, IssueState.Closed, closedLastWeek),
        repo.list(IssueType.PullRequest, IssueState.All, createdLastWeek),
        repo.list(IssueType.PullRequest, IssueState.Open, updatedLastWeek),
        repo.list(IssueType.PullRequest, IssueState.Closed, closedLastWeek),
        repo.list(IssueType.Issue, IssueState.All, createdLastDay),
        repo.list(IssueType.Issue, IssueState.Open, updatedLastDay),
        repo.list(IssueType.Issue, IssueState.Closed, closedLastDay),
        repo.list(IssueType.PullRequest, IssueState.All, createdLastDay),
        repo.list(IssueType.PullRequest, IssueState.Open, updatedLastDay),
        repo.list(IssueType.PullRequest, IssueState.Closed, closedLastDay)
    ]);
}).then(function(issuesList){
开发者ID:pierreca,项目名称:dashboards,代码行数:20,代码来源:ghquery.ts


注:本文中的gh-issues-api.GHRepository.list方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。