Runs logic to detect if a merged pull request is what resulted in the build's run. If yes, populates the pull request to the mergedPullRequest global variable for the build.