跳转到主要内容

从多个仓库收集问题并生成一个漂亮的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 <mail@gocept.com>

PyPI 页面:

https://pypi.ac.cn/project/gocept.bbissues/

问题:

https://github.com/gocept/gocept.bbissues/issues

源代码:

https://github.com/gocept/gocept.bbissues

当前更改日志:

https://raw.githubusercontent.com/gocept/gocept.bbissues/master/CHANGES.rst

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)

初始版本

项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分发

gocept.bbissues-0.10.tar.gz (23.5 kB 查看散列)

上传时间

构建分发

gocept.bbissues-0.10-py2.py3-none-any.whl (22.2 kB 查看散列)

上传时间 Python 2 Python 3

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面