Make sure ref_name and base_ref_name are always available
Handle the best GitHub event