Skip to content

mhmdiaa/github-issues-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

github-issues-search

A simple command-line tool to search GitHub issues.

Note: this tool can fetch up to 1000 results per query due to GitHub API search limit. If you need more, be clever.

Output Schema

The output is saved as a JSON file following this schema

[
    {
        "title": "title",
        "body": "body",
        "comments": [
            "comment1",
            "comment2"
        ]
    }
]

Installation

  1. Install requests.
pip install requests
  1. Replace the value of the access_token variable with your GitHub token (doesn't need to have any permissions; therefore don't give it any).
access_token = "ADD_GITHUB_TOKEN_HERE"

Usage

usage: github-issues.py [-h] -q QUERY -o OUTPUT [--user USER] [--org ORG]

optional arguments:
  -h, --help   show this help message and exit
  -q QUERY     search query
  -o OUTPUT    output file name
  --user USER  limit search to a specific user (equivalent to -q user:foo)
  --org ORG    limit search to a specific user (equivalent to -q org:foo)

About

A simple command-line tool to search GitHub issues.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages