vsagar100 commited on
Commit
d321cf2
·
1 Parent(s): 02bdc55

Updated the code to accept the git url

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "ansible_tf_provisioner"
14
- GITHUB_BRANCH = "main" # Specify the branch or tag to download
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