/** * Returns if a push was successful. * @access public */ public function success_push($output = '', $args = '') { $msg = sprintf(_n('Successfully pushed %s commit to %s/%s.', 'Successfully pushed %s commits to %s/%s.', $args, 'revisr'), $args, $this->remote, $this->branch); Revisr_Admin::alert($msg); Revisr_Admin::log($msg, 'push'); if ($this->config_revisr_url('webhook') !== false) { $remote = new Revisr_Remote(); $remote->send_request(); } }
/** * Returns if a push was successful. * @access public */ public function success_push($output = array(), $args = '') { $msg = sprintf(_n('Successfully pushed %s commit to %s/%s.', 'Successfully pushed %s commits to %s/%s.', $args, 'revisr'), $args, revisr()->git->remote, revisr()->git->branch); Revisr_Admin::alert($msg); Revisr_Admin::log($msg, 'push'); // Fires after a successful push. do_action('revisr_post_push', $output); if (revisr()->git->get_config('revisr', 'webhook-url') !== false) { $remote = new Revisr_Remote(); $remote->send_request(); } }