diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-13 15:13:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-13 15:13:10 +0300 |
commit | 8ebd99a81f8fe458153de9815f73f9067d010293 (patch) | |
tree | 29390f8f6e89af290768a32e4bb6cf281c44105d /app/services/import | |
parent | c283bdb7bc86aee27a7ed065fc9fb17e4c4ffee6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/import')
-rw-r--r-- | app/services/import/github_service.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/services/import/github_service.rb b/app/services/import/github_service.rb index 86c62145a87..a96bfd74cd0 100644 --- a/app/services/import/github_service.rb +++ b/app/services/import/github_service.rb @@ -16,7 +16,7 @@ module Import track_access_level('github') if project.persisted? - store_import_settings(project, access_params) + store_import_settings(project) success(project) elsif project.errors[:import_source_disabled].present? error(project.errors[:import_source_disabled], :forbidden) @@ -134,13 +134,12 @@ module Import error(translated_message, http_status) end - def store_import_settings(project, access_params) + def store_import_settings(project) Gitlab::GithubImport::Settings .new(project) .write( timeout_strategy: params[:timeout_strategy] || ProjectImportData::PESSIMISTIC_TIMEOUT, - optional_stages: params[:optional_stages], - additional_access_tokens: access_params[:additional_access_tokens] + optional_stages: params[:optional_stages] ) end end |