Logic for merge pull requests