从多个仓库收集问题并生成一个漂亮的HTML页面。
项目描述
gocept.bbissues发行版
从多个bitbucket或github仓库收集开放问题并生成一个漂亮的HTML页面或包含有关项目json信息的文件。
此包与Python版本3.6、3.7和3.8兼容。
安装
使用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保存到配置中指定的文件。
开发gocept.bbissues
gocept.bbissues 的更改日志
0.10 (2022-05-02)
移除对 Python 2.7 的支持。
0.9 (2021-09-17)
添加对 Python 3.6、3.7 和 3.8 的支持。
迁移到 GitHub 和 GitHub Actions。
0.8.1 (2017-06-30)
如果 PR 或问题不可用,将更加健壮。
在 API 错误的情况下添加日志记录。
0.8 (2016-07-07)
如果评论中包含 Unicode,则不要在生成 html 时崩溃。
正确处理来自 GitHub 的 PullRequests。
将 assignee 作为属性添加到项中,并在标准模板中使用它。
0.7 (2016-02-03)
将 time_rendered 作为变量传递给 jinja2 模板。
将评论数添加到问题/拉取请求中,并将其传递到模板。
从配置文件中读取所有者,并收集此所有者的所有项目。
添加新的模板,该模板渲染带有筛选选项的表格。
将类型(问题、拉取请求)导出到 JSON 文件。
0.6 (2016-01-27)
将 HTML 保存到配置中指定的文件。使 JSON 文件的路径可配置。
0.5 (2016-01-26)
添加导出到 JSON 文件的问题和拉取请求,这些文件在配置中指定的 json_export_days 天内不旧。
0.4 (2016-01-14)
改进错误处理。
0.3 (2016-01-13)
不要从 Bitbucket 拉取已关闭的票据。 (#4)
增强文档。
0.2 (2016-01-13)
添加 GitHub 作为问题来源。 (#3)
0.1 (2015-04-08)
初始版本