GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BaseMax/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).

BranchesTags
Open more actions menu

Latest commit

 

History

109 Commits
109 Commits

Folders and files

NameName
Last commit message
Last commit date
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
script.py
script.py
 
 

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

  • Python 3.x
  • GitHub Personal Access Token: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

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

githubgithub-apigithub-api-pythongithub-api-v3github-issuegithubpyissueissuespypy-githubpygithubpythonpython3

Resources

Readme
GPL-3.0 license
Activity

Stars

4 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.