def METHOD_NAME(args, filename):
    """
    Append the GIT summary to test report.
    Args:
        args: results from argument parser
        filename: file to append to
    """
    cwd = os.getcwd()
    if not os.path.isfile(cwd + '/' + filename):
        return
    report = ''
    org_file = os.path.join(cwd, filename)
    with open(org_file, 'r') as org_f:
        report = org_f.read()
    build_summary_to_be_done = True
    with open(org_file, 'w') as org_f:
        for line in report.split('\n'):
            my_res = re.search('Deployment Summary', line)
            if (my_res is not None) and build_summary_to_be_done:
                summary = generate_git_summary(args)
                org_f.write(summary)
                build_summary_to_be_done = False
            org_f.write(line + '\n')