fedrepo_req is a command-line (CLI) tool developed in Python that provides an easy way to submit ticket requests for things such as: Requesting a new repository/package Requesting a new branch for your repository/package * Requesting to unretire a repository/package
fedrepo-req - a command to request new packages:
Usage: fedrepo-req [OPTIONS] REPO BRANCHES... Options: -c, --comaintainers TEXT The package's co-maintainers. -d, --description TEXT The package's description. -k, --koschei Enable Koschei integration. -m, --monitor [no-monitoring|monitoring|monitoring-with-scratch] Monitoring type for the package. -n, --namespace [rpms|container|modules|test-modules] The repo's namespace. -s, --summary TEXT Override the package's summary from the ticket. -t, --ticket TEXT The package request's ticket number. -u, --upstreamurl TEXT The package's upstream URL. --help Show this message and exit.
Below is an example when requesting the "python" repository with branches
"2.7" and "3.6". The -t
represents the Bugzilla ticket number for the package
review:
$ fedrepo-req python 2.7 3.6 -t 1234
fedrepo-req-branch - a command to request new package branches:
Usage: fedrepo-req-branch [OPTIONS] PACKAGE BRANCHES... Options: -n, --namespace [rpms|container|modules|test-modules] The repo's namespace. --help Show this message and exit.
Below is an example of requesting the "3.5" branch for the "python" package:
$ fedrepo-req-branch python 3.5
fedrepo-req-unretire - a command to unretire a package:
Usage: fedrepo-req-unretire [OPTIONS] REPO Options: --acknowledge Disable the confirmation prompt. -n, --namespace [rpms|container|modules|test-modules] The repo's namespace. --help Show this message and exit.
Below is an example of unretiring the "python" package:
$ fedrepo-req-unretire python
The default configuration is located at /etc/fedrepo_req/config.ini
.
To get started, you'll need to get a Pagure API key to the "pkgdb-tickets"
repo and add it to ~/.config/fedrepo_req/config.ini
. To do this:
Visit http://127.0.0.1:5000/pkgdb-tickets/token/new
Select "Create a new ticket against this project"
Click on "Create"
Scroll down to the "API Keys" section and copy the API key.
Create your personal config file at ~/.config/fedrepo_req/config.ini
Paste the API key so that it looks like this:
[app] pagure_api_token = <api_key_here>