This PR will merge 3 Init functions on setting packages as 1 and introduce an options struct.
base_ref
head_ref
api_url
ref_type