From a73e9eed5a0131e357d11829560d24dae29fba3a Mon Sep 17 00:00:00 2001 From: James Kunstle Date: Jun 08 2021 16:30:31 +0000 Subject: Pagure token request - ACL specification Updated the help text for: cli.py: register_request_repo cli.py: register_do_fork to include the specific ACL that was required. Fixes #440 JIRA: RHELCMP-5467 Signed-off-by: James Kunstle --- diff --git a/fedpkg/cli.py b/fedpkg/cli.py index 53ce761..4ff9195 100644 --- a/fedpkg/cli.py +++ b/fedpkg/cli.py @@ -264,11 +264,16 @@ class fedpkgClient(cliClient): description = textwrap.dedent(''' Request a new dist-git repository - Before the operation, you need to generate a pagure.io API token at - https://{1}/settings/token/new, select the relevant ACL(s) - and save it in your local user configuration located - at ~/.config/rpkg/{0}.conf. For example: + Before the operation, you need to generate a pagure.io API token at: + https://{1}/settings/token/new + ACL required: + "Create a new ticket" + + Save the API token to local user configuration located at: + ~/.config/rpkg/{0}.conf + + For example: [{0}.pagure] token = @@ -448,11 +453,16 @@ class fedpkgClient(cliClient): description = textwrap.dedent(''' Create a new fork of the current repository - Before the operation, you need to generate an API token at - https://{1}/settings/token/new, select the relevant ACL(s) - and save it in your local user configuration located - at ~/.config/rpkg/{0}.conf. For example: + Before the operation, you need to generate a pagure.io API token at: + https://{1}/settings/token/new + + ACL required: + "Fork a project" + + Save the API token to local user configuration located at: + ~/.config/rpkg/{0}.conf + For example: [{0}.distgit] token =