mirror of
https://github.com/rms-support-letter/rms-support-letter.github.io.git
synced 2024-11-05 18:41:40 +01:00
15 lines
450 B
Python
15 lines
450 B
Python
import subprocess
|
|
from _importer import parse_and_import_signature
|
|
|
|
|
|
parts = subprocess.run(["gh", "issue", "view", "837", "-c"], capture_output=True).stdout.split(b"\n--\n")
|
|
|
|
for info, content in zip(parts[::2], parts[1::2]):
|
|
info_dict = {}
|
|
for line in info.decode().split("\n"):
|
|
key, value = line.split(":\t")
|
|
info_dict[key] = value
|
|
|
|
author = info_dict["author"]
|
|
parse_and_import_signature(content.decode(), author)
|