示例#1
0
def get_remote_version(branch_to_compare):
    global config
    decoded_file = get_file_contents(config.github_token, BRAVE_REPO,
                                     'package.json', branch_to_compare)
    json_file = json.loads(decoded_file)
    return json_file['version']
示例#2
0
def get_remote_version(branch_to_compare):
    global config
    decoded_file = get_file_contents(config.github_token, BRAVE_REPO, 'package.json', branch_to_compare)
    json_file = json.loads(decoded_file)
    return json_file['version']