Commit 7cb12fcf authored by Douwe Maan's avatar Douwe Maan
Browse files

Fix EmailsOnPush.

parent 049f3dda20ef
......@@ -31,6 +31,7 @@
- Replace commits calendar with faster contribution calendar that includes issues and merge requests
- Add inifinite scroll to user page activity
- Don't show commit comment button when user is not signed in.
- Fix EmailsOnPush.
v 7.9.0
- Send EmailsOnPush email when branch or tag is created or deleted.
class EmailsOnPushWorker
include Sidekiq::Worker
def perform(project_id, recipients, push_data, send_from_committer_email: false, disable_diffs: false)
def perform(project_id, recipients, push_data, options = {})
send_from_committer_email: false,
disable_diffs: false
send_from_committer_email = options[:send_from_committer_email]
disable_diffs = options[:disable_diffs]
project = Project.find(project_id)
before_sha = push_data["before"]
after_sha = push_data["after"]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment