[go: up one dir, main page]

Skip to content

Custom instance-level project templates do not import protected branches settings

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When creating a project from custom instance level template the allowed to merge and allowed to push and merge settings are not transferred over.

Looks like this should have been solved in: #381404 (closed) but it is still reproducible in v17.

Instance level custom template project settings:

Screenshot_2024-07-02_at_09.51.24

Project created from template settings:

Screenshot_2024-07-02_at_09.52.32

Steps to reproduce

  • Create a template project and set it in the admin > settings > templates > custom project templates
  • Set this template project protected branch settings project > settings > repository > protected branches to: Allowed to merge = Developers + Maintainers and Allowed to push and merge to Developers + Maintainers
  • Create project from this template, note that protected branch settings are Allowed to merge = Maintainers and Allowed to push and merge = Maintainers

Relevant logs and/or screenshots

No relevant logs.

Results of GitLab environment info

GitLab version 17.0.1

Edited by 🤖 GitLab Bot 🤖