diff options
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | lib/API/GitForge/GitLab.pm | 11 |
2 files changed, 9 insertions, 4 deletions
@@ -2,6 +2,8 @@ Revision history for API::GitForge {{$NEXT}} - Add git repo metadata to dist.ini. + - Don't disable merge requests in GitLab clean forks, otherwise we + can't submit merge requests upstream. 0.001 2020-02-16 16:20:35-07:00 America/Phoenix - First public release. diff --git a/lib/API/GitForge/GitLab.pm b/lib/API/GitForge/GitLab.pm index 7ffd844..b264eb9 100644 --- a/lib/API/GitForge/GitLab.pm +++ b/lib/API/GitForge/GitLab.pm @@ -101,11 +101,14 @@ sub _clean_config_fork { $self->{_api}->edit_project( "$user/$repo", { - default_branch => "gitforge", - description => "Temporary fork for merge request(s)", + default_branch => "gitforge", + description => "Temporary fork for merge request(s)", + issues_access_level => "disabled", + # merge requests have to be enabled in the fork in order + # to submit merge requests to the upstream repo from which + # we forked, it seems + merge_requests_access_level => "enabled", }); - - $self->_clean_config_repo("$user/$repo"); } sub _ensure_repo { |