def addcommenttocommit(self, project_id, author, sha, path, line, note):

        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
Adds an inline comment to a specific commit
dataset/ETHPy150Open pyapi-gitlab/pyapi-gitlab/gitlab/__init__.py/Gitlab.addcommenttocommit