Skip to main content

Convert Git Issue to Markdown

Project description

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.1.0.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

pygh2md-0.1.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygh2md-0.1.0.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pygh2md-0.1.0.tar.gz
Algorithm Hash digest
SHA256 319dc6605dcec7149ee59d02c49000d7b335ea1e0e5afcdbf7e97088884c3483
MD5 d8a601dd8d68911eba8c9ee6f8c48b5c
BLAKE2b-256 eb83460aed4e5345f10ca00a3e4fe16b359c3c513c7da1b722255eade41f4861

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygh2md-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pygh2md-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7164b31079f23eab04ca68f1bc23f0cc7ab78d66b80042b670daf2d77ba02ade
MD5 6b2566b8775d73e86f9ea545e678f5ae
BLAKE2b-256 2bdae55821cf52702253b61ccdcb39e6e69a95571446fdca707b5ff75ec97296

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