David Prince
fix: add all missing local module stubs (remote_mcp_registry, mcp_auth, mcp_transport, etc)
cce8120
Raw
History Blame Contribute Delete
1.38 kB
import api from "../api";
export async function repositories(){
const {data}=await api.get("/api/github/repositories");
return data;
}
export async function repository(name){
const {data}=await api.get(`/api/github/repositories/${name}`);
return data;
}
export async function cloneRepository(url){
const {data}=await api.post("/api/github/clone",{url});
return data;
}
export async function createRepository(payload){
const {data}=await api.post("/api/github/repositories",payload);
return data;
}
export async function commit(projectId,message){
const {data}=await api.post(`/api/github/${projectId}/commit`,{
message
});
return data;
}
export async function push(projectId){
const {data}=await api.post(`/api/github/${projectId}/push`);
return data;
}
export async function pull(projectId){
const {data}=await api.post(`/api/github/${projectId}/pull`);
return data;
}
export async function branches(projectId){
const {data}=await api.get(`/api/github/${projectId}/branches`);
return data;
}
export async function checkout(projectId,branch){
const {data}=await api.post(`/api/github/${projectId}/checkout`,{
branch
});
return data;
}
export async function pullRequests(projectId){
const {data}=await api.get(`/api/github/${projectId}/pull-requests`);
return data;
}