# formatting example of "push" event from fluent-plugin-github-activities EVENT_KEY_PREFIX = "github-activity-" repository = event["repo"]["name"] message = { :key => "#{EVENT_KEY_PREFIX}push-#{payload["push_id"]}", :title => "Pushed #{payload["size"]} commits to #{repository}", :description => nil, :author => event["actor"]["login"], :uri => "https://github.com/#{repository}/compare/" + "#{payload["before"]}...#{payload["head"]}", :timestamp => Time.parse(event["created_at"]), :parent => nil, }