github-projects
A module that makes it easy to access Github projects data
Installation
Export your Github accessToken as an environment variable
export GITHUB_ACCESS_TOKEN=your_token
Then install
npm i github-projects
Usage
Projects
All examples below require that you require the Projects class
const github = ;const projects = yourOrgName yourProjectId;
Get an entire Project Board with all columns and cards (useful for building your own UI)
projects;
List your projects
projects
Get Project By Name
projects
Get Project by Id
projects
Get columns for a Project
projects;
Get Cards for a Column
projects;
Cards
All examples below require that you require the Cards class
const github = ;const cards = yourOrgName repoName;
Create a Card
issues;
Issues
All examples below require that you require the Issues class
const github = ;const issues = yourOrgName repoName;
List all Issues
issues;
listAll (auto-paginates)
issues;
Create an Issue
issues;
Tests
npm test