summary refs log tree commit diff stats
path: root/gitlab/output.py
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-05-30 16:52:07 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-05-30 16:52:17 +0200
commit9260319e7411ff8281700a532caa436f40120ec4 (patch)
tree2f6bfe5f3458dd49d328d3a9eb508595450adec0 /gitlab/output.py
parent225caa38269323af1bfc2daadff5ec8bd930747f (diff)
downloadqemu-analysis-9260319e7411ff8281700a532caa436f40120ec4.tar.gz
qemu-analysis-9260319e7411ff8281700a532caa436f40120ec4.zip
gitlab scraper: download in toml and text format
Diffstat (limited to 'gitlab/output.py')
-rwxr-xr-xgitlab/output.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/gitlab/output.py b/gitlab/output.py
index 07293147b..1844efdb5 100755
--- a/gitlab/output.py
+++ b/gitlab/output.py
@@ -20,4 +20,14 @@ def output_issue(issue : dict) -> None:
     target_label = find_label(labels, "target")
     host_label = find_label(labels, "host")
     accel_label = find_label(labels, "accel")
-    write_file(f"issues/{target_label}/{host_label}/{accel_label}/{issue_id}.toml", toml_string)
+    write_file(f"issues_toml/{target_label}/{host_label}/{accel_label}/{issue_id}.toml", toml_string)
+
+    text_path = f"issues_text/{target_label}/{host_label}/{accel_label}/{issue_id}"
+    write_file(text_path, issue['title'] + "\n")
+    with open(text_path, "a") as file:
+        if issue['description'] != "n/a":
+            file.write("Description of problem:\n" + issue['description'] + "\n")
+        if issue['reproduce'] != "n/a":
+            file.write("Steps to reproduce:\n" + issue['reproduce'] + "\n")
+        if issue['additional'] != "n/a":
+            file.write("Additional information:\n" + issue['additional'] + "\n")