AzureCosmosDBUI / backup4.app.py
awacke1's picture
Update backup4.app.py
88838c0 verified
raw
history blame
728 Bytes
def render_sidebar(client, structure):
# Existing code...
# GitHub Operations
st.sidebar.subheader("πŸ™ GitHub Operations")
if GITHUB_TOKEN:
# Proceed with GitHub operations
source_repo = st.sidebar.text_input("πŸ”— Source Repo URL")
new_repo_name = st.sidebar.text_input("πŸ†• New Repo Name", value=f"Clone-{datetime.now().strftime('%Y%m%d_%H%M%S')}")
if st.sidebar.button("πŸ“₯ Clone Repository"):
clone_github_repo(source_repo, new_repo_name)
if st.sidebar.button("πŸ“€ Push to New Repository"):
push_to_new_repo(source_repo, new_repo_name)
else:
st.sidebar.warning("⚠️ GitHub token not set. GitHub operations are disabled.")