Branch-name for pull requests

I’m using buildkite to build pull-requests but I’m confused about one behaviour I see: When I first submit a PR the request name is:


but if it fails and I restart the build it appears as:


How do I get a consistent behaviour so I can properly set the branch requirements in github?

Example PR ->
Pipeline (public) ->