Adds an inline comment to a specific commit

        :param project_id: project id
        :param author: The author info as returned by create mergerequest
        :param sha: The name of a repository branch or tag or if not given the default branch
        :param path: The file path
        :param line: The line number
        :param note: Text of comment
        :return: True or False

def addcommenttocommit(self, project_id, author, sha, path, line, note):
        """
        Adds an inline comment to a specific commit

        :param project_id: project id
        :param author: The author info as returned by create mergerequest
        :param sha: The name of a repository branch or tag or if not given the default branch
        :param path: The file path
        :param line: The line number
        :param note: Text of comment
        :return: True or False
        """

        data = {
            'author': author,
            'note': note,
            'path': path,
            'line': line,
            'line_type': 'new'
        }

        request = requests.post(
            '{0}/{1}/repository/commits/{2}/comments'.format(self.projects_url, project_id, sha),
            headers=self.headers, data=data, verify=self.verify_ssl)

        if request.status_code == 201:
            return True
        else:
            return False