Skip to main content

Convert closed Git Issues to Markdown

Project description

CircleCI PyPI version Maintenance forthebadge made-with-python

Introduction

A simple python console script to let me convert GitHub Closed Issues output to Markdown.

Typically after working a multi-repository project I want to know the issues in each repository that have been fixed since the last release.

It produces output in the following format:

* [121](https://api.github.com/repos/hasii2011/pytrek/issues/121) Implement Move automatic 
* [120](https://api.github.com/repos/hasii2011/pytrek/issues/120) Fixing of devices is not asynchronous 
* [119](https://api.github.com/repos/hasii2011/pytrek/issues/119) We should only have a single Super Commander 

Overview

The basic command structure is:

Usage: pygh2md [OPTIONS]

  slug            A repository slug in the format <user-name>/repository-name;
  e.g., `hasii2011/TestRepository`

  sinceDate       The start date to query for closed issues; Format yyyy-mm-
  dd; e.g., 2024-03-01

  output_file     The filename for the markdown output file

  appends If `True` append this script's output (default is True)

Options:
  --version               Show the version and exit.
  -s, --slug TEXT         GitHub slugs to query  [required]
  -d, --since-date TEXT   The date from which we want to start searching.
                          [required]
  -o, --output-file TEXT  The output markdown file.  [required]
  -a, --append            Append to output file
  --help                  Show this message and exit.

A simple example:

pygh2md -s hasii2011/pytrek -d 2024-06-01 -o PytrekClosedIssues.md

Installation

pip install pygh2md

Written by Humberto A. Sanchez II <mailto@humberto.a.sanchez.ii@gmail.com>, (C) 2024

Note

For all kind of problems, requests, enhancements, bug reports, etc., please drop me an e-mail.


Humberto's Modified Logo

I am concerned about GitHub's Copilot project

I urge you to read about the Give up GitHub campaign from the Software Freedom Conservancy.

While I do not advocate for all the issues listed there I do not like that a company like Microsoft may profit from open source projects.

I continue to use GitHub because it offers the services I need for free. But, I continue to monitor their terms of service.

Any use of this project's code by GitHub Copilot, past or present, is done without my permission. I do not consent to GitHub's use of this project's code in Copilot.

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

pygh2md-0.2.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

pygh2md-0.2.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file pygh2md-0.2.0.tar.gz.

File metadata

  • Download URL: pygh2md-0.2.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pygh2md-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c20118548f4b06571fbc97ea91d2f1683cbaeb50db3bee4cc261069c89dc395c
MD5 9875cc019b4c724f104d4ca126c1eac1
BLAKE2b-256 a81151cd6b152ab890e11192bbc6ada868518ea9b772b83922786cd7638814c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygh2md-0.2.0.tar.gz:

Publisher: python-publish.yml on hasii2011/pygh2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pygh2md-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pygh2md-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pygh2md-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dad6c4b55a5afea2fdac63b0936d0c2a7ff76b41d237ae94ba59bc73bd7ebfab
MD5 487321eb4f51ced06b3ad925247ef57d
BLAKE2b-256 c9727681565fb40a319173cd3b2c2f7cbc818aab3394cd42e944eda2dde6a835

See more details on using hashes here.

Provenance

The following attestation bundles were made for pygh2md-0.2.0-py3-none-any.whl:

Publisher: python-publish.yml on hasii2011/pygh2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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