Giter VIP home page Giter VIP logo

basemax / get-github-issues Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 57 KB

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: GNU General Public License v3.0

Python 100.00%
github github-api github-api-v3 github-issue issue issues py pygithub python python3

get-github-issues's Introduction

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

get-github-issues's People

Contributors

aliiahmadi avatar basemax avatar dependabot[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

get-github-issues's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.