I am intending to make a bot that will make some automated merge request comments based off of the files associated with the merge request.
Is there any easy way to do this?
I stumbled upon a library called python-gitlab that seems helpful but am unsure of how to accomplish this.
It seems like I would have to get a merge request by the merge request id
mr = project.mergerequests.get(mr_id)
and then use the merge request to get the source branch
how?
then access the items via the source branch
items = project.repository_tree(path='docs', ref='branch1') # like this?
Is there a better way to accomplish creating merge request comments based off of the files associated with the merge request?