Updated the code to accept the git url
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ import glob
|
|
| 10 |
st.title("GitHub Repository Code Reviewer")
|
| 11 |
# Variables for GitHub repository details
|
| 12 |
REPO_OWNER = "vsagar100"
|
| 13 |
-
REPO_NAME = "
|
| 14 |
-
GITHUB_BRANCH = "
|
| 15 |
GITHUB_TOKEN = "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" #os.getenv("GITHUB_TOKEN") # Specify your GitHub token
|
| 16 |
|
| 17 |
# GitHub API endpoint to download the repo as a zip file
|
|
|
|
| 10 |
st.title("GitHub Repository Code Reviewer")
|
| 11 |
# Variables for GitHub repository details
|
| 12 |
REPO_OWNER = "vsagar100"
|
| 13 |
+
REPO_NAME = st.text_input("Enter the GitHub repository URL:")
|
| 14 |
+
GITHUB_BRANCH = st.text_input("Enter the branch or tag to download (default: main):", "main")
|
| 15 |
GITHUB_TOKEN = "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" #os.getenv("GITHUB_TOKEN") # Specify your GitHub token
|
| 16 |
|
| 17 |
# GitHub API endpoint to download the repo as a zip file
|