| |
@@ -520,7 +520,7 @@
|
| |
mock_session.get.side_effect = [
|
| |
mock_values.get_mock_issue_rv(
|
| |
'rawhide', ticket_type='new_branch'),
|
| |
- mock_values.get_mock_pagure_project(exists=True),
|
| |
+ mock_values.get_mock_pagure_project_contributors(exists=True),
|
| |
mock_values.get_mock_pagure_git_urls(is_project=True),
|
| |
mock_values.get_mock_pdc_branch('rawhide', exists=False)
|
| |
]
|
| |
@@ -548,7 +548,7 @@
|
| |
mock_session.get.side_effect = [
|
| |
mock_values.get_mock_issue_rv(
|
| |
'rawhide', ticket_type='new_branch'),
|
| |
- mock_values.get_mock_pagure_project(exists=True),
|
| |
+ mock_values.get_mock_pagure_project_contributors(exists=True),
|
| |
mock_values.get_mock_pagure_git_urls(is_project=True),
|
| |
mock_values.get_mock_pdc_branch('rawhide', exists=False)
|
| |
]
|
| |
@@ -646,7 +646,7 @@
|
| |
mock_session.get.side_effect = [
|
| |
mock_values.get_mock_issue_rv(
|
| |
'epel7', ticket_type='new_branch', repo='kernel'),
|
| |
- mock_values.get_mock_pagure_project(exists=True),
|
| |
+ mock_values.get_mock_pagure_project_contributors(exists=True),
|
| |
mock_values.get_mock_pagure_git_urls(),
|
| |
mock_values.get_mock_el_check_rv()
|
| |
]
|
| |
@@ -778,7 +778,7 @@
|
| |
mock_values.get_mock_pdc_branch('rawhide', exists=False),
|
| |
mock_values.get_mock_pdc_global_component(exists=True),
|
| |
mock_values.get_mock_pdc_branch(None, exists=False),
|
| |
- mock_values.get_mock_pagure_project(exists=True),
|
| |
+ mock_values.get_mock_pagure_project_contributors(exists=True),
|
| |
mock_values.get_mock_pagure_git_urls(is_project=True),
|
| |
mock_values.get_mock_pdc_branch(None, exists=False),
|
| |
mock_values.get_mock_pdc_global_component(exists=True),
|
| |
@@ -824,7 +824,7 @@
|
| |
mock_session.get.side_effect = [
|
| |
mock_values.get_mock_issue_rv(
|
| |
branch_name, ticket_type='new_branch'),
|
| |
- mock_values.get_mock_pagure_project(exists=True),
|
| |
+ mock_values.get_mock_pagure_project_contributors(exists=True),
|
| |
mock_values.get_mock_pagure_git_urls(is_project=True),
|
| |
mock_values.get_mock_pdc_branch(None, exists=False),
|
| |
mock_values.get_mock_pdc_global_component(exists=True),
|
| |
If user or group collaborators are granted access to, e.g. "epel*",
they should be able to request branches that match this globbing, e.g.
"epel9".
Pagure has an API endpoint for reporting contributors in the level
of detail we need; add a wrapper in
pagure.py
(get_project_contributors
)and use it in
utils.py
'sprompt_for_new_branch
Signed-off-by: Michel Alexandre Salim salimma@fedoraproject.org