mirror of
https://github.com/Theodor-Springmann-Stiftung/KGPZ.git
synced 2025-10-29 09:05:30 +00:00
+ Github annotations
This commit is contained in:
17
Scripts/annotations_references.py
Normal file
17
Scripts/annotations_references.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import os
|
||||
|
||||
def main():
|
||||
if not os.path.exists('reference_check_errors.txt'):
|
||||
print("Keine Referenzprüfungs-Ergebnisse gefunden.")
|
||||
return
|
||||
|
||||
with open('reference_check_errors.txt', 'r') as f:
|
||||
for line in f:
|
||||
parts = line.strip().split(', Zeile ')
|
||||
if len(parts) == 2:
|
||||
file_path, rest = parts
|
||||
line_number, message = rest.split(': ', 1)
|
||||
print(f"::error file={file_path},line={line_number}::{message}")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user