Giter VIP home page Giter VIP logo

export-github-issues's Introduction

export-github-issues

This is based on https://github.com/jlord/offline-issues, and removed ghauth (use options --token to auth)

js-standard-style

Get your GitHub Issues offline! In Markdown and HTML.

This is a command line application, using Node.js, that fetches the GitHub Issue/s you specify and writes them to files on your computer in both HTML and markdown formats. This way you can view them without an internet connection.

This will cap issues at the first 250.

screenshot

Usage

Use it to save Issues as .md and .html. Options in next section.

  • install
npm install -g @jiapantw/export-github-issues

github_api_token, you can to github generate api_token for temp

  • For one issue:
export-github-issues --token <github_api_token> <ownerId>/<repo>#issueId
  • For all issues:
export-github-issues --token <github_api_token> <ownerId>/<repo>
  • For multiple repositories or issues:
export-github-issues --token <github_api_token> <ownerId>/<repo> <ownerId>/<repo2>#1

Example:

export-github-issues --token <github_api_token> justintien/blog#1 justintien/blog#2

The files are written to whichever directory you are currently in. You will see a md and html folder added, each of which contains the issues you requested.

Options

To just generate HTML files from existing offline cache:

export-github-issues -h
export-github-issues --html

To skip generating ./static/* files for HTML:

export-github-issues -S <ownerId>/<repo>
export-github-issues --no-static <ownerId>/<repo>

To save generated files in different location:

export-github-issues -d <DIRECTORY> <ownerId>/<repo>
export-github-issues --destination <DIRECTORY> <ownerId>/<repo>

To filter by issue state:

export-github-issues -s all <ownerId>/<repo>
export-github-issues --state all <ownerId>/<repo>

This option accepts either open, closed or all. (Default: all) Note that the filter won't be applied when issue number is specified, like muan/github-gmail#4.

export-github-issues's People

Contributors

justintien avatar oetiker avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.