Implement merging a pull request and checking if it has been merged.

I changed the names to prevent compilation warnings indication hiding method created in other files.