diff --git a/_data/signed/Digit.yaml b/_data/signed/Digit.yaml new file mode 100644 index 00000000..8e9a8f06 --- /dev/null +++ b/_data/signed/Digit.yaml @@ -0,0 +1,2 @@ +name: Digit +link: https://notabug.org/Digit diff --git a/_data/signed/basedCow.yaml b/_data/signed/basedCow.yaml new file mode 100644 index 00000000..e52749f8 --- /dev/null +++ b/_data/signed/basedCow.yaml @@ -0,0 +1,2 @@ +name: basedCow +link: https://codeberg.org/basedCow diff --git a/_data/signed/neox_.yaml b/_data/signed/neox_.yaml new file mode 100644 index 00000000..c32381f4 --- /dev/null +++ b/_data/signed/neox_.yaml @@ -0,0 +1,2 @@ +name: Adrien Bourmault +link: https://gitlab.os-k.eu/neox diff --git a/_data/signed/spectral.yaml b/_data/signed/spectral.yaml new file mode 100644 index 00000000..640e6cc7 --- /dev/null +++ b/_data/signed/spectral.yaml @@ -0,0 +1,2 @@ +name: Julian Barathieu +link: https://gitlab.os-k.eu/spectral diff --git a/_data/signed/theundercoverman.yaml b/_data/signed/theundercoverman.yaml new file mode 100644 index 00000000..50d66bce --- /dev/null +++ b/_data/signed/theundercoverman.yaml @@ -0,0 +1,2 @@ +name: theundercoverman +link: https://theundercoverman.codeberg.page/ diff --git a/_data/signed/tonib.yaml b/_data/signed/tonib.yaml new file mode 100644 index 00000000..0583b865 --- /dev/null +++ b/_data/signed/tonib.yaml @@ -0,0 +1,2 @@ +name: Toni Bryan +link: https://codeberg.org/tonib diff --git a/_data/signed/zleap.yaml b/_data/signed/zleap.yaml new file mode 100644 index 00000000..2ff247a7 --- /dev/null +++ b/_data/signed/zleap.yaml @@ -0,0 +1,2 @@ +name: Paul Sutton +link: https://codeberg.org/zleap diff --git a/import-from-codeberg.py b/import-from-codeberg.py new file mode 100644 index 00000000..4b46c870 --- /dev/null +++ b/import-from-codeberg.py @@ -0,0 +1,21 @@ +import requests +import os + + +page = 1 +while True: + comments = requests.get(f"https://codeberg.org/api/v1/repos/rms-support-letter/rms-support-letter/issues/comments?page={page}").json() + if not comments: + break + for comment in comments: + author = comment["user"]["login"] + content = comment["body"] + + content_lines = [line.strip() for line in content.replace("`", "").strip().split("\n") if line.strip()] + for i in range(len(content_lines) - 1): + if content_lines[i].lower().startswith("name:") and content_lines[i + 1].lower().startswith("link:"): + if not os.path.isfile(f"_data/signed/{author}.yaml"): + with open(f"_data/signed/{author}.yaml", "w") as f: + f.write("name:" + content_lines[i][5:] + "\nlink:" + content_lines[i + 1][5:] + "\n") + + page += 1