Skip to content

A Python script to get a list of all open issues in a repository with specific labels, and fetch their corresponding bodies and comments in chronological order (oldest to newest).

License

Notifications You must be signed in to change notification settings

BaseMax/get-github-issues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get GitHub Issues

A Python script to get a list of all open issues in a repository with specific labels, and fetch their corresponding bodies and comments in chronological order (oldest to newest).

Prerequisites

Installation

Clone the repository:

git clone https://github.com/BaseMax/get-github-issues.git
cd get-github-issues

Create an virtual envirement:

python -m venv venv

Install the dependencies:

pip install -r requirements.txt

At last run activate binary file to enable virtual envirenment:

source venv/bin/activate

Usage

Set the ACCESS_TOKEN (GitHub Personal Access Token) variable inside .env file:

Or

export ACCESS_TOKEN=YOUR_TOKEN_HERE

Run the script:

python script.py <owner> <repository> <labels>

Replace with the name of the repository owner, with the name of the repository, and with a comma-separated list of labels you want to filter by. For example:

python get-github-issues.py BaseMax get-github-issues "bug,enhancement"

This will fetch all open issues in the BaseMax/get-github-issues repository with the labels "bug" or "enhancement".

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details.

Acknowledgments

  • GitHub REST API v3
  • python-dotenv

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Copyright 2023, Max Base

About

A Python script to get a list of all open issues in a repository with specific labels, and fetch their corresponding bodies and comments in chronological order (oldest to newest).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages