Update app.py
Browse files
app.py
CHANGED
|
@@ -124,7 +124,7 @@ def update_summary_and_create_pr(repo_url, folder_location, start_date, end_date
|
|
| 124 |
raise
|
| 125 |
|
| 126 |
# Add new file link at the top of the Releases section
|
| 127 |
-
new_entry = f"* [{end_date}](rel/{file_name})\n"
|
| 128 |
releases_index = summary_content.find("* [Releases]")
|
| 129 |
if releases_index != -1:
|
| 130 |
insert_position = summary_content.find("\n", releases_index) + 1
|
|
@@ -192,7 +192,7 @@ app.layout = dbc.Container([
|
|
| 192 |
]),
|
| 193 |
dbc.Row([
|
| 194 |
dbc.Col([
|
| 195 |
-
dbc.Input(id='repo-url', placeholder="Repository URL (
|
| 196 |
], width=12, className="mb-3"),
|
| 197 |
]),
|
| 198 |
dbc.Row([
|
|
@@ -207,15 +207,19 @@ app.layout = dbc.Container([
|
|
| 207 |
]),
|
| 208 |
dbc.Row([
|
| 209 |
dbc.Col([
|
| 210 |
-
dbc.Input(id='folder-location', placeholder="Folder Location", type="text")
|
| 211 |
], width=12, className="mb-3"),
|
| 212 |
]),
|
| 213 |
dbc.Row([
|
| 214 |
dbc.Col([
|
| 215 |
-
dbc.Button("Generate Release Notes", id="generate-button", color="primary", className="
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 219 |
]),
|
| 220 |
dbc.Row([
|
| 221 |
dbc.Col([
|
|
|
|
| 124 |
raise
|
| 125 |
|
| 126 |
# Add new file link at the top of the Releases section
|
| 127 |
+
new_entry = f" * [{end_date}](rel/{file_name})\n"
|
| 128 |
releases_index = summary_content.find("* [Releases]")
|
| 129 |
if releases_index != -1:
|
| 130 |
insert_position = summary_content.find("\n", releases_index) + 1
|
|
|
|
| 192 |
]),
|
| 193 |
dbc.Row([
|
| 194 |
dbc.Col([
|
| 195 |
+
dbc.Input(id='repo-url', placeholder="Repository URL (e.g., MicroHealthLLC/maiko-assistant)", type="text")
|
| 196 |
], width=12, className="mb-3"),
|
| 197 |
]),
|
| 198 |
dbc.Row([
|
|
|
|
| 207 |
]),
|
| 208 |
dbc.Row([
|
| 209 |
dbc.Col([
|
| 210 |
+
dbc.Input(id='folder-location', placeholder="Folder Location (e.g., documentation/releases/rel)", type="text")
|
| 211 |
], width=12, className="mb-3"),
|
| 212 |
]),
|
| 213 |
dbc.Row([
|
| 214 |
dbc.Col([
|
| 215 |
+
dbc.Button("Generate Release Notes", id="generate-button", color="primary", className="me-2 mb-2"),
|
| 216 |
+
], width=4),
|
| 217 |
+
dbc.Col([
|
| 218 |
+
dbc.Button("Download Markdown", id="download-button", color="secondary", className="me-2 mb-2", disabled=True),
|
| 219 |
+
], width=4),
|
| 220 |
+
dbc.Col([
|
| 221 |
+
dbc.Button("Create PR", id="pr-button", color="info", className="mb-2", disabled=True),
|
| 222 |
+
], width=4),
|
| 223 |
]),
|
| 224 |
dbc.Row([
|
| 225 |
dbc.Col([
|