Cloud-CV / EvalAI-Starters

How to create a challenge on EvalAI?
75 stars 158 forks source link

Bug: assumption that repo is under account of owner of AUTH_TOKEN #70

Open gianmarco-motional opened 1 year ago

gianmarco-motional commented 1 year ago

In utils.py in two instances to fetch the repo the calls are chained as

def add_pull_request_comment(github_auth_token, repo_name, pr_number, comment_body):
        ....
        client = Github(github_auth_token)
        repo = client.get_user().get_repo(repo_name)

This does not allow for the repo to be owned by an organization or by a person different by the one owning the AUTH_TOKEN.