从多个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
Author: | gocept <mail@gocept.com> |
---|---|
PyPI page: | https://pypi.python.org/pypi/gocept.bbissues |
Issues: | https://bitbucket.org/gocept/gocept.bbissues/issues |
Source code: | https://bitbucket.org/gocept/gocept.bbissues |
Current change log: | |
https://bitbucket.org/gocept/gocept.bbissues/raw/tip/CHANGES.rst |
更改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)
初始版本