file path = repo_name/abc/xyz.yml
repo (is the git repo object)
I want to be able to check if the repo consists of the file by returning a Boolean.
something like:
def fileInRepo(repo, filePath):
if filePath in repo.files:
return true
else:
return false
I had a problem like yours and I resolved it using this script.
Hope this is helpful for you. Thank you.