mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-31 14:50:50 +01:00
feat: new button to push local branches, no longer auto pushes new branches to remote
This commit is contained in:
@@ -297,3 +297,12 @@ export const unlinkRepo = async (removeFiles = false) => {
|
||||
}
|
||||
};
|
||||
|
||||
export const pushBranchToRemote = async (branchName) => {
|
||||
try {
|
||||
const response = await axios.post(`${API_BASE_URL}/git/branch/push`, { branch: branchName });
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
console.error('Error pushing branch to remote:', error);
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user