Strange "branch list" API behavior

Gitlab-Version: Community Edition 10.3.3 888cf31

Hi there,

I’m currently trying to develop a web app for connecting Jira, Jenkins and Gitlab by using the respective APIs. In this context, I wanted to display if a branch is fully merged. Which is an information the branch-api offers.

When using the Gitlab-UI my test branch is flagged as “fully merged” as well as when I’m querying the branch via “/api/v4/projects/<project_id>/repository/branches/test-branch”.

But when I’m getting the list of branches, the test-branch isn’t flagged as merged. Even though the corresponding commit is the same.

Am I missing a query param or something else, or is it a bug in gitlab.

Thx
Ceekay