Skip to main content

Collect issues from multiple repositories and generate a nice html page.

Project description

The gocept.bbissues distribution

Collect open issues from multiple bitbucket or github repositories and generate a nice html page or a file with json information about your projects.

This package is compatible with Python version 3.6, 3.7 and 3.8.

Installation

Install the package using PIP:

$ pip install gocept.bbissues

Configuration

You have to provide a config file with the following content:

[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

The template will be rendered using jinja2, and could have the following content:

{% 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 %}

Usage

Call it using:

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

It saves the generated HTML to the file specified in config.

Developing gocept.bbissues

Author:

gocept <mail@gocept.com>

PyPI page:

https://pypi-hypernode.com/project/gocept.bbissues/

Issues:

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

Source code:

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

Current change log:

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

Change log for gocept.bbissues

0.10 (2022-05-02)

  • Remove support for Python 2.7.

0.9 (2021-09-17)

  • Add support for Python 3.6, 3.7 and 3.8.

  • Migrate to GitHub and GitHub Actions.

0.8.1 (2017-06-30)

  • Be more robust if the PRs or Issues are not available.

  • Add logging in case of an API error.

0.8 (2016-07-07)

  • Don’t crash on generating html if unicode is in the comments.

  • Handle PullRequests from GitHub correctly.

  • Add assignee as a property to an item and use it in the standard template.

0.7 (2016-02-03)

  • Add time_rendered as a variable passed to the jinja2 template.

  • Add the count of comments to the issue/pullrequest and pass to template.

  • Read the owner from the config file and collect all projects from this owner.

  • Add new template that renders a table with filter options.

  • Export type (Issue, PullRequest) to JSON file.

0.6 (2016-01-27)

  • Save HTML to a file which is specified in config. Made path to JSON file configurable.

0.5 (2016-01-26)

  • Add JSON export for issues and pullrequest not older that json_export_days specified in config.

0.4 (2016-01-14)

  • Improve error handling.

0.3 (2016-01-13)

  • Don’t pull closed tickets from Bitbucket. (#4)

  • Enhanced documentation.

0.2 (2016-01-13)

  • Add GitHub as issue source. (#3)

0.1 (2015-04-08)

initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gocept.bbissues-0.10.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

gocept.bbissues-0.10-py2.py3-none-any.whl (22.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gocept.bbissues-0.10.tar.gz.

File metadata

  • Download URL: gocept.bbissues-0.10.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for gocept.bbissues-0.10.tar.gz
Algorithm Hash digest
SHA256 bbf7385ec3034f56573af8f2d30ada19b549ff43a0803f6f44acc113fea11bdf
MD5 2a4023c4d027ee4ca03d43dc0bdb61f2
BLAKE2b-256 8e6276ece5eb76d50f87288506ffdd9af4d188edc905ee74c9d59c9c0ae642b4

See more details on using hashes here.

File details

Details for the file gocept.bbissues-0.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gocept.bbissues-0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bc399b10a6f1ebfa3f2511c02ed5f2323bde7f416c48ab86c2f218bd8a91f6ef
MD5 05dcf8d6b7129e05b8b9f9adfbd45ebf
BLAKE2b-256 a0d88b52e8832f7068978c950dd3a99a30cc8324deb489e75ea0e82a165c3b43

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page