Get all the merge requests for a project.

        :param project_id: ID of the project to retrieve merge requests for
        :param page: Page Number
        :param per_page: Records per page
        :param state: Passes merge request state to filter them by it
        :return: list with all the merge requests

def getmergerequests(self, project_id, page=1, per_page=20, state=None):
        """
        Get all the merge requests for a project.

        :param project_id: ID of the project to retrieve merge requests for
        :param page: Page Number
        :param per_page: Records per page
        :param state: Passes merge request state to filter them by it
        :return: list with all the merge requests
        """
        data = {'page': page, 'per_page': per_page, 'state': state}

        request = requests.get(
            '{0}/{1}/merge_requests'.format(self.projects_url, project_id),
            params=data, headers=self.headers, verify=self.verify_ssl, auth=self.auth, timeout=self.timeout)

        if request.status_code == 200:
            return request.json()
        else:
            return False