Skip to content

expeehaa/IssueStatusApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IssueStatusApi

This is a small library that uses the Github API (using Octokit.Net) to get status information of the format that Issue Status is able to parse and display. The information can be used to, for example, monitor changes of sites using this format automatically.

Usage

First, the IssueStatusApi.IssueStatus class has to be initialized. The constructor takes an optional (but recommended) API token. Without an API token, requests are limited to 60 per hour, with an API token the limit goes up to 5000 requests per hour. For public repositories, the token needs at least the scope public_repo.

var issueStatus = new IssueStatusApi.IssueStatus(GITHUB_API_TOKEN);

The status issues can be fetched with the following method.

var status = issueStatus.GetStatus(GITHUB_REPO_OWNER, GITHUB_REPO_NAME);

To produce a list of changed status issues (new/modified/deleted), use the following method on two Status objects.

var changes = IssueStatusApi.IssueStatus.CompareStatus(oldStatus, newStatus);

About

Library to get issues as they are displayed and retrieved by Issue Status (https://github.com/tadhglewis/issue-status).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages