classEmailsOnPushWorkerincludeSidekiq::Workerdefperform(project_id,recipients,push_data)project=Project.find(project_id)before_sha=push_data["before"]after_sha=push_data["after"]branch=push_data["ref"]author_id=push_data["user_id"]ifbefore_sha=~/^000000/||after_sha=~/^000000/# skip if new branch was pushed or branch was removedreturntrueend