Commit e5f32c63 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'add-default-branch-to-kas-responses' into 'master'

Add default_branch to KAS responses

See merge request gitlab-org/gitlab!81950
parents 94b474a5 73788fa2
......@@ -39,6 +39,7 @@ module API
def gitaly_repository(project)
{
default_branch: project.default_branch_or_main,
storage_name: project.repository_storage,
relative_path: project.disk_path + '.git',
gl_repository: repo_type.identifier_for_container(project),
......
......@@ -169,6 +169,7 @@ RSpec.describe API::Internal::Kubernetes do
'features' => {}
),
'gitaly_repository' => a_hash_including(
'default_branch' => project.default_branch_or_main,
'storage_name' => project.repository_storage,
'relative_path' => project.disk_path + '.git',
'gl_repository' => "project-#{project.id}",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment