Skip to content

januswel/gie

Repository files navigation

gie

Github issues exporter

Getting Started

npm install @januswel/gie

For authentication, an environment variable "TOKEN" is used.

export TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

A repo scope is required for private repositories.

scope

Usage

import { Issue } from '@januswel/gie'

const owner = 'januswel'
const repo = 'gie'
Issue.getAll(owner, repo).then(issues => {
  console.log(issues)
})

CLI

TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx npx @januswel/gie issues januswel gie

in CSV

TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx npx @januswel/gie issues januswel gie --csv