Giter Site home page Giter Site logo

pagure_api_scripts's Introduction

pagure_api_scripts

This repository contains scripts using API calls to work with pagure

Quick start

  1. Clone this repository git clone https://github.com/Zlopez/pagure_api_scripts.git
  2. Enter the directory cd pagure_api_scripts
  3. Create a python virtual env python -m venv .venv
  4. Activate the virtual env source .venv/bin/activate
  5. Install requirements pip install -r requirements
  6. Start the script python pagure_api_scripts_cli.py closed-issues fedora-infra

Usage

closed-issues command

This command is retrieving useful data about closed issues from specified pagure repository.

python pagure_api_scripts_cli.py closed-issues <repository>

This will retrieve all closed issues in the last 30 days from the repository and print aggregated data.

python pagure_api_scripts_cli.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 pagure_api_scripts_cli.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.

open-issues command

This command is retrieving useful data about open issues from specified pagure repository.

python pagure_api_scripts_cli.py open-issues <repository>

This will retrieve all open issues in the last 30 days from the repository and print aggregated data.

python pagure_api_scripts_cli.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 pagure_api_scripts_cli.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.

update-google-spreadsheet command

This command updates specified Google Spreadsheet with the data about closed/open issues from pagure repositories. Spreadsheet is identified by spreadsheetId which could be obtained from document url https://docs.google.com/spreadsheets/d/<spreadsheetId/edit.

python pagure_api_scripts_cli.py update-google-spreadsheet <spreadsheet_id> <repository>

This will retrieve all open/closed issues in the last 7 days from the repository and saves aggregated data to Google Spreadsheet.

python pagure_api_scripts_cli.py update-google-spreadsheet --days-ago 5 <spreadsheet_id> <repository>

This will retrieve all open/closed issues in the last 5 days from the repository and saves aggregated data to Google Spreadsheet.

python pagure_api_scripts_cli.py update-google-spreadsheet --days-ago 5 --till 11.05.2022 <spreadsheet_id> <repository>

This will retrieve all open/closed issues in the last 5 days till 11.05.2022 from the repository and saves aggregated data to Google Spreadsheet.

python pagure_api_scripts_cli.py update-google-spreadsheet <spreadsheet_id> <repository1> <repository2>

This will retrieve all open/closed issues in the last 7 days from the repository1, repository2 and saves aggregated data to Google Spreadsheet. You can specify unlimited number of repositories, but the repositories need to be last argument for the command.

pagure_api_scripts's People

Contributors

zlopez avatar renovate[bot] avatar

Watchers

 avatar  avatar

Forkers

camgranella

pagure_api_scripts's Issues

Add support for google docs

As the results of this script are copied to Google doc by hand every week I would like to add google docs support to CLI.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

None detected


  • Check this box to trigger a request for Renovate to run again on this repository

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.