What this does? It looks like it either assigns or creates a milestone according to noMilestone.getBase().getRef() which equals to the target branch name. According to closed PRs in our private EAP branch milestones usually differ to the branch names.