We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe02f66 commit b315d52Copy full SHA for b315d52
src/gitingest/ingest_from_query.py
@@ -219,9 +219,21 @@ def create_file_content_string(files: List[Dict]) -> str:
219
output = ""
220
separator = "=" * 48 + "\n"
221
222
+ # First add README.md if it exists
223
for file in files:
224
if not file['content']:
225
continue
226
+ if file['path'].lower() == '/readme.md':
227
+ output += separator
228
+ output += f"File: {file['path']}\n"
229
230
+ output += f"{file['content']}\n\n"
231
+ break
232
+
233
+ # Then add all other files in their original order
234
+ for file in files:
235
+ if not file['content'] or file['path'].lower() == '/readme.md':
236
+ continue
237
output += separator
238
output += f"File: {file['path']}\n"
239
0 commit comments