From 7f36aef1e1387d2c1b97984d19fe82362f50dcd8 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 21 2020 18:46:26 +0000 Subject: Add a note that repo_from* argument are mandatory in some situations When creating PR via the API, if the repo that the changes originates from is different from the repo targeted by the PR, then the information about the repo_from must be provided so that pagure knows where to look for these changes. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/api/fork.py b/pagure/api/fork.py index 4a389d3..1185ce8 100644 --- a/pagure/api/fork.py +++ b/pagure/api/fork.py @@ -1353,6 +1353,11 @@ def api_pull_request_create(repo, username=None, namespace=None): | | | | changes are about. | +-----------------------+----------+-------------+------------------------+ + Note: If f the repo you're opening the PR against is not the same as the + repo from which the changes originates, you must provide the ``repo_from`` + and ``repo_from_username`` (and potentially ``repo_from_namespace``) + corresponding to the fork. + Sample response ^^^^^^^^^^^^^^^