Skip to main content

Dinghy daily digest tool

Project description

Dinghy daily GitHub digest tool.

PyPI Supported Python versions License

Dinghy uses the GitHub GraphQL API to find recent activity on issues and pull requests, and writes a compact HTML digest. Write your configuration in a dinghy.yaml file, then:

$ pip install dinghy
$ python -m dinghy

Configuration

Dinghy configuration is read from a dinghy.yaml file:

digests:
  - digest: lastweek.html
    since: 1 week
    items:
      - https://github.com/orgs/myorg/projects/17
      - https://github.com/orgs/anotherorg/projects/8
      - https://github.com/myorg/myrepo/pulls

  - digest: hotnews.html
    since: 1 day
    items:
      - url: https://github.com/orgs/anotherorg/projects/8
        home_repo: anotherorg/wg
      - https://github.com/myorg/churnchurn/issues

  - digest: all_prs.html
    since: 1 day
    items:
      - pull_requests: org:myorg

defaults:
  ignore_users:
    - app-user
    - fake-bot

The digests clause is a list of digests to produce. The defaults clause sets defaults for the digest options in the rest of the file. Each in the digests clause specifies what to digest:

  • The digest setting is the HTML file to write.

  • The since setting indicates how far back to look for activity. It can use units of weeks, days, hours, minutes and seconds, and can also be abbreviated, like 1d6h.

  • The items setting is a list of things to report on, specified in a few different ways:

    • The url setting is a GitHub URL, in a number of forms:

      • An organization project URL will report on the issues and pull requests in the project.

      • A URL to a repo will report on the issues and pull requests in the repo.

      • A URL to a repo’s issues will report on the issues in the repo.

      • A URL to a repo’s pull requests will report on the pull requests in the repo.

    • The pull_requests setting can specify an organization to search for pull requests.

    • If an item only needs to specify a GitHub URL, then it can simply be the URL string.

Items can have additional options:

  • No activity is reported for bot users. Some applications act as real users, but should be ignored anyway. You can list those user names that should be ignored in the ignore_users setting.

  • Options for organization projects include:

    • home_repo is the owner/repo of the repo in which most issues will be created. Issues in other repos will have the repo indicated in the digest.

Changelog

Unreleased

See the fragment files in the scriv.d directory.

0.5.1 — 2022-03-07

Changed

  • Indentation tweaks to make thread structure clearer.

0.5.0 — 2022-03-03

Changed

  • Pull request reviews are displayed more compactly.

0.4.0 — 2022-02-28

Added

  • A repo URL will report on both pull requests and issues in the repo.

0.3.0 — 2022-02-27

Added

  • The configuration file can be specified as the argument on the command line.

  • GitHub icons decorate pull requests, issues, and comments to distinguish them and indicate their status.

Changed

  • The configuration file syntax changed. Now there is a top-level digests clause and an optional defaults clause.

  • The bots setting is now called ignore_users.

  • Pull request review threads are presented hierarchically.

0.2.0 — 2022-02-21

Added

  • Items can have options. Organization projects have a home_repo option so that issues from other repos will get an indication of the other repo.

  • Organizatons can be searched for pull requests.

  • If dinghy hits a GraphQL API rate limit, it will sleep until the limit is reset.

  • Don’t report on activity by bot users. The bot setting can be used to list user accounts that should be considered bots.

0.1.0 — 2022-02-19

  • First 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

dinghy-0.5.1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dinghy-0.5.1-py2.py3-none-any.whl (22.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dinghy-0.5.1.tar.gz.

File metadata

  • Download URL: dinghy-0.5.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for dinghy-0.5.1.tar.gz
Algorithm Hash digest
SHA256 3fd61e9e4b508feda705a8dffac5f66efd47415d4c20fefe500a5da10b0a23f0
MD5 2b2c3a6a32e38b708b9d70e3dfdbe44c
BLAKE2b-256 e8366c4c1fdfeaf7efae2fe2227b5816a6902f91ec9e5beab61560681d3b3478

See more details on using hashes here.

File details

Details for the file dinghy-0.5.1-py2.py3-none-any.whl.

File metadata

  • Download URL: dinghy-0.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for dinghy-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a8877c9963fcddaf28a4e4dc80f884b85b78124d0843860ce1a980ae41e864b8
MD5 e8734c6ba2b6bb8b52b6efea1a170183
BLAKE2b-256 f918e125f2aa12c14bbeacf4891245159d250d3914a819ed80585f15cf5eaa42

See more details on using hashes here.

Supported by

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