从多个Bitbucket存储库收集问题并生成一个漂亮的HTML页面。

gocept.bbissues的Python项目详细描述


bb发布分布

从多个Bitbucket或GitHub存储库收集未解决的问题并生成 一个不错的html页面或一个包含项目json信息的文件。

这个包与Python2.7版本兼容。

安装

使用pip安装软件包:

$ pip install gocept.bbissues

配置

您必须提供包含以下内容的配置文件:

[config]
log = issues.log
html_export_path = export.html
json_export_path = export.json
# The next line is optional it defaults to index.jj2 in the package
template_path = template.jj2


[bitbucket]
# The owner always has to be provided. All projects by this owner
# will be collected.
owner = owner
# Specific projects may be provided in the following way
projects = owner:project1
           owner:project2

[github]
# The owner always has to be provided. All projects by this owner
# will be collected.
owner = owner
# Specific projects may be provided in the following way
projects = owner:project1
           owner:project2

模板将使用jinja2呈现,并且可以包含以下内容:

{% for project in projects %}
    <h2>{{project.name}}</h2>
    {% for issue in project.issues %}
        <h3>{{issue.title}}</h3>
         <pre>
         {{issue.title}}
         {{issue.content}}
         {{issue.status}}
         {{issue.created}}
         {{issue.priority}}
         {{issue.url}}
         {{issue.author}}
         </pre>
    {% endfor %}
{% endfor %}

使用量

使用:

$ <path to bin directory>/bbissues --config <path to config file>

它将生成的html保存到config中指定的文件中。

更改gocept.bbissues的日志

0.8.1(2017-06-30)

  • 如果没有可用的减贫战略或问题,请更加稳健。
  • 在出现API错误时添加日志记录。

0.8(2016-07-07)

  • 如果注释中包含Unicode,则生成HTML时不要崩溃。
  • 正确处理来自github的pullrequests。
  • 将Assignee作为属性添加到项中,并在标准模板中使用它。

0.7(2016-02-03)

  • 添加作为传递到jinja2模板的变量呈现的时间。
  • 将注释计数添加到issue/pullrequest并传递到模板。
  • 从配置文件中读取所有者并从该所有者收集所有项目。
  • 添加新模板,该模板使用筛选选项呈现表。
  • 将类型(issue,pullrequest)导出到json文件。

0.6(2016-01-27)

  • 将HTML保存到配置中指定的文件。生成JSON文件的路径 可配置。

0.5(2016-01-26)

  • 添加问题的json导出和不早于json导出天数的pullrequest 在配置中指定。

0.4(2016-01-14)

  • 改进错误处理。

0.3(2016-01-13)

  • 不要从Bitbucket中提取已关闭的票。(4)
  • 增强的文档。

0.2(2016-01-13)

  • 添加github作为问题源。(3)

0.1(2015-04-08)

初始版本

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java MongoOperations Upert/FindModify删除mongo中的所有字段   java括号中的二叉树,而!=空值无效   java com.*.*.**。安全CustomUserDetail无法强制转换为com。***。安全CustomUserDetail   java如何编写多线程算法来发现可用socket   java Spring Boot Solr:子文档的索引列表   java如何向maven shade插件添加外部jar文件   java zebra条形码扫描仪Android studio集成   java为什么一个地方的原始类型会导致其他地方的通用调用站点被视为原始类型?   java将swing控件拆分为相等的部分   java如何在jshell中为spring项目设置类路径   java关于如何从API级别19的时间选择器中删除此白边的提示?   存储二进制字符串所有可能序列的算法,Java   测试JUnitJava。lang.NullPointerException   java Google AppEngine数据库   JavaSpring如何向数据对象注入@Value?   在eclipse java项目中包含mavenant构建库   带有JSP/EL的java省略号(缩写文本)