An open API service indexing awesome lists of open source software.

https://github.com/tejasbubane/github_api

Github issues API
https://github.com/tejasbubane/github_api

Last synced: 9 months ago
JSON representation

Github issues API

Awesome Lists containing this project

README

          

The repository contains a basic Github client for its REST API.

## Requirements
* Ruby 3.1
* Access to at least one Github repository
* Please create a personal access token for your personal account so that the Github API requests work. The repository is public, so any token will work.

## Instructions
It needs to be run at the command line like this

```
TOKEN=github_pat_xxx ruby process.rb
```

The code implements only one method in the API - `issues`. It outputs up to 50 issues in the provided repository. It lets you set whether the
issues returned are open or closed, and then displays them in decreasing order of date as follows:

1. If you selected open issues, the date used is the issue's created date.
1. Else, it's the issues' closed date.