Update app.py
Browse files
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 |
-
#
|
| 12 |
-
|
| 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")
|