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 and sets the environment variable GITHUB_PR_MERGE_DETECTED=true for the build.