def get_touched_payload_files(payload):
    touched = set()
    
    # Iterate over commits in chronological order.
    for commit in payload['commits']:
        for filelist in (commit['added'], commit['modified']):
            # Include any potentially-new files.
            touched.update(filelist)
        
        for filename in commit['removed']:
            # Skip files that no longer exist.
            if filename in touched:
                touched.remove(filename)
        
    current_app.logger.debug(u'Touched files {}'.format(', '.join(touched)))
    
    return touched
Return a set of files modified in payload commits.
dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py/get_touched_payload_files