import axios from 'axios';
// 获取分支列表
export const getBranch = async (id,owner)=>{
  return (await axios.get(`/${owner}/${id}/branches.json`)).data;
}
// 获取标签列表
export const getTag = async (id,owner)=>{
  return (await axios.get(`/${owner}/${id}/tags.json`)).data;
}
// 获取hooks（仓库设置-管理web钩子）列表
export const getHooks = async (id,params)=>{
  return (await axios.get(`/projects/${id}/hooks.json`,{params})).data;
}