All Projects → mattduck → gh2md

mattduck / gh2md

Licence: MIT license
Export Github repository issues, pull requests and comments to markdown.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to gh2md

Gitment
A comment system based on GitHub Issues.
Stars: ✭ 3,957 (+4065.26%)
Mutual labels:  github-issues
probot-messages
Probot extension for communicating with repository maintainers
Stars: ✭ 13 (-86.32%)
Mutual labels:  github-issues
github-interact-cli
🎩 Interact with GItHub right inside your terminal
Stars: ✭ 43 (-54.74%)
Mutual labels:  github-issues
github-markdown-tailwindcss
⛵ Replicate GitHub Flavored Markdown with Tailwind CSS components
Stars: ✭ 100 (+5.26%)
Mutual labels:  github-markdown
issue-inspector
🔎 Preview and jump to the most upvoted comments in github issues (which are probably solutions)
Stars: ✭ 41 (-56.84%)
Mutual labels:  github-issues
find-comment
A GitHub action to find an issue or pull request comment
Stars: ✭ 81 (-14.74%)
Mutual labels:  github-issues
github-label-notify
📫 Get notified about new issues with specific label
Stars: ✭ 18 (-81.05%)
Mutual labels:  github-issues
open-source-ideas.github.io
Website for mikaelbr/open-source-ideas
Stars: ✭ 25 (-73.68%)
Mutual labels:  github-issues
GitInfo-Git-for-Google-Assistant
GitInfo is a conversational data retrieval bot for Github repositories. It provides a conversational experience to access information. Information that can be retrieved using GitInfo include: stars, latest commit details , no of forks , no of issues etc.
Stars: ✭ 18 (-81.05%)
Mutual labels:  github-issues
blog
My Blog
Stars: ✭ 112 (+17.89%)
Mutual labels:  github-issues
tex image link generator
generate <img src="https://render.githubusercontent.com/render/math?math={tex}">
Stars: ✭ 54 (-43.16%)
Mutual labels:  github-issues
new-issue
A fully customizable Github issues interface. Setup for your repo today!
Stars: ✭ 22 (-76.84%)
Mutual labels:  github-issues
yoda
GitHub extension for agile project management, using the issues subsystem.
Stars: ✭ 86 (-9.47%)
Mutual labels:  github-issues
Gitalk
Gitalk is a modern comment component based on Github Issue and Preact.
Stars: ✭ 5,778 (+5982.11%)
Mutual labels:  github-issues
github-issues-rss
convert github issues to rss
Stars: ✭ 25 (-73.68%)
Mutual labels:  github-issues
vue-blog
使用 Vue 和 Github Issues 搭建的 SPA Blog
Stars: ✭ 18 (-81.05%)
Mutual labels:  github-issues
bug-hunter-game
Bug Hunter Game is an web service that turns GitHub Issues into a game.
Stars: ✭ 28 (-70.53%)
Mutual labels:  github-issues
issue-wanted
🏷 Web application to help beginners to start contributing into Haskell projects
Stars: ✭ 61 (-35.79%)
Mutual labels:  github-issues
github-issues-notice
Notify labeled issues to Slack
Stars: ✭ 20 (-78.95%)
Mutual labels:  github-issues
GitYourFeedback
Let users submit feedback, with screenshots, directly from your iOS app to Github Issues
Stars: ✭ 60 (-36.84%)
Mutual labels:  github-issues

gh2md

PyPI

Export issues and pull requests for a Github repository to a readable markdown file. You can either create a single file for the repo, or a directory with one file per issue. See usage instructions for how to filter by issue type and state.

There are various other projects that handle Github issue exports (Eg. offline-issues), but I couldn't find one that writes all issues, comments and metadata to a single readable file.

Example exports

An example exported file is included in the examples directory. There is also an example directory with one issue per file

Default behaviour is to export all issues and PRs.

Usage

Run export for paulirish/git-open, pulling token from environment, and excluding closed PRs::

export GITHUB_ACCESS_TOKEN=myAPItoken
gh2md paulirish/git-open git-open.md --no-closed-prs

Run export for shezadkhan137/required, pulling token from file, and excluding closed issues::

echo myAPItoken > ~/.config/gh2md/token
gh2md shezadkhan137/required required.md --no-closed-issues

Run export for public repository sarabander/sicp, using no authentication and one file per issue::

gh2md sarabander/sicp sicp-issues --multiple-files --no-closed-prs

Full help:

usage: gh2md [-h] [--multiple-files] [-I] [--no-prs] [--no-closed-prs]
            [--no-issues] [--no-closed-issues]
            repo output_path

Export Github repository issues, pull requests and comments to markdown files:
https://github.com/mattduck/gh2md

Example: gh2md mattduck/gh2md my_issues.md

Credentials are resolved in the following order:

- A `GITHUB_ACCESS_TOKEN` environment variable.
- An API token stored in ~/.config/gh2md/token or ~/.github-token.

To access private repositories, you'll need a token with the full "repo" oauth
scope.

By default, all issues and pull requests will be fetched. You can disable these
using the --no... flags, eg. --no-closed-prs, or --no-prs.

positional arguments:
repo                Github repo to export, in format "owner/repo_name".
output_path         Path to write exported issues.

optional arguments:
-h, --help          show this help message and exit
--multiple-files    Instead of one file, treat the given path as a
                    directory, and create one file per issue, using a format
                    '{created_at}.{issue_number}.{issue_type}.{issue_state}.
                    md'.
-I, --idempotent    Remove non-deterministic values like timestamps. Two
                    runs of gh2md will always produce the same result, as
                    long as the Github data has not changed.
--no-prs            Don't include pull requests in the export.
--no-closed-prs     Don't include closed pull requests in the export.
--no-issues         Don't include issues in the export.
--no-closed-issues  Don't include closed issues in the export.

Install

pip install gh2md. Alternatively, clone the repository and run make install.

Authentication

gh2md should be able to read public repositories without any explicit authentication. However, to read your private repositories, you'll need to provide a personal access token with full the full repo oauth scope.

It's not possible to authenticate with a username and password. Github used to support this, but it was discontinued in 2020.

Github workflow: backup issues as a markdown file in your repo

@0ut0fcontrol contributed a github workflow that uses gh2md to run a nightly export to issues.md, and push it back to your repo. You can find the thread and workflow code here.

This has been added to the gh2md repo itself, so you can see an up-to-date export in issues.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].