pagure_api_scripts
This repository contains scripts using API calls to work with pagure
Quick start
- Clone this repository
git clone https://github.com/Zlopez/pagure_api_scripts.git
- Enter the directory
cd pagure_api_scripts
- Create a python virtual env
python -m venv .venv
- Activate the virtual env
source .venv/bin/activate
- Install requirements
pip install -r requirements
- Start the script
python get_statistics.py closed-issues fedora-infra
get_statistics
This script is retrieving various useful data from specified pagure repository.
Usage
python get_statistics.py closed-issues <repository>
This will retrieve all closed issues in the last 30 days from the repository
and print aggregated data.
python get_statistics.py closed-issues <repository> --days-ago 5
This will retrieve all closed issues in the last 5 days from the repository
and print aggregated data.
python get_statistics.py closed-issues <repository> --days-ago 5 --till 11.05.2022
This will retrieve all closed issues in the last 5 days till 11.05.2022 from the repository
and print aggregated data.
python get_statistics.py open-issues <repository>
This will retrieve all open issues in the last 30 days from the repository
and print aggregated data.
python get_statistics.py open-issues <repository> --days-ago 5
This will retrieve all open issues in the last 5 days from the repository
and print aggregated data.
python get_statistics.py open-issues <repository> --days-ago 5 --till 11.05.2022
This will retrieve all open issues in the last 5 days till 11.05.2022 from the repository
and print aggregated data.