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
- Host: GitHub
- URL: https://github.com/tejasbubane/github_api
- Owner: tejasbubane
- Created: 2025-01-24T16:12:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-24T16:55:27.000Z (over 1 year ago)
- Last Synced: 2025-03-25T09:51:25.769Z (about 1 year ago)
- Language: Ruby
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.