On running fedpkg request-repo, I am prompted to get an API token, which I do, but when I try to run fedpkg set-pagure-token I get ERROR: User config file not found at: $HOME/.config/rpkg/fedpkg.conf
I can’t find any documentation telling me what needs to be in that file or how to create it. Or am I just supposed to put the API key there?
Take a look at the fedpkg man page, that has information on what needs to go into the config files:
fedpkg request-repo
usage: fedpkg request-repo [-h]
[--namespace {rpms,container,modules,flatpaks}]
[--description DESCRIPTION]
[--monitor {no-monitoring,monitoring,monitoring-with-scratch}]
[--upstreamurl UPSTREAMURL]
[--summary SUMMARY] [--exception]
[--no-initial-commit]
name [bug]
Request a new dist-git repository
Before the operation, you need to generate a pagure.io API token at:
https://pagure.io/settings/token/new
ACL required:
"Create a new ticket"
Update your token with the following command:
fedpkg set-pagure-token <api_key_here>
Command saves token to fedpkg config file:
~/.config/rpkg/fedpkg.conf
For example:
[fedpkg.pagure]
token = <api_key_here>
It should create the file if it doesn’t exist I guess, worth filing a bug