Spaces:
Running
Running
Delete backup4.app.py
Browse files- backup4.app.py +0 -16
backup4.app.py
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
def render_sidebar(client, structure):
|
2 |
-
# Existing code...
|
3 |
-
# GitHub Operations
|
4 |
-
st.sidebar.subheader("🐙 GitHub Operations")
|
5 |
-
|
6 |
-
if GITHUB_TOKEN:
|
7 |
-
# Proceed with GitHub operations
|
8 |
-
source_repo = st.sidebar.text_input("🔗 Source Repo URL")
|
9 |
-
new_repo_name = st.sidebar.text_input("🆕 New Repo Name", value=f"Clone-{datetime.now().strftime('%Y%m%d_%H%M%S')}")
|
10 |
-
|
11 |
-
if st.sidebar.button("📥 Clone Repository"):
|
12 |
-
clone_github_repo(source_repo, new_repo_name)
|
13 |
-
if st.sidebar.button("📤 Push to New Repository"):
|
14 |
-
push_to_new_repo(source_repo, new_repo_name)
|
15 |
-
else:
|
16 |
-
st.sidebar.warning("⚠️ GitHub token not set. GitHub operations are disabled.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|