Incorrect Inheritance of 'only_allow_merge_if_pipeline_succeeds' in Project API

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

I've encountered an issue when querying project data through the API.

When a containing group enforces the only_allow_merge_if_pipeline_succeeds setting at the group level, querying an inherited project incorrectly returns an invalid value for only_allow_merge_if_pipeline_succeeds. This inconsistency makes the API unreliable.

I believe that if the containing group has enforced only_allow_merge_if_pipeline_succeeds, the GET Project API should correctly return "true".

image

Edited by 🤖 GitLab Bot 🤖