bluenevus commited on
Commit
9d6e6cb
·
verified ·
1 Parent(s): 0de5490

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -8,11 +8,8 @@ def generate_release_notes(github_url, github_token, gemini_api_key, start_date,
8
  # Initialize GitHub client with the token
9
  g = Github(github_token)
10
 
11
- # Remove .git suffix if present
12
- github_url = github_url.rstrip('.git')
13
-
14
- # Get the repository directly using the URL
15
- repo = g.get_repo(github_url.replace('https://github.com/', ''))
16
 
17
  # Get commits between start_date and end_date
18
  start_date = datetime.strptime(start_date, "%Y-%m-%d")
 
8
  # Initialize GitHub client with the token
9
  g = Github(github_token)
10
 
11
+ # Get the repository directly using the full URL
12
+ repo = g.get_repo(github_url)
 
 
 
13
 
14
  # Get commits between start_date and end_date
15
  start_date = datetime.strptime(start_date, "%Y-%m-%d")