INNER CODE UNIT · Python
labels
jacobdjwilson/awesome-annual-security-reports · .github/scripts/apply-triage-label.py:62
def labels(self) -> Dict[str, Dict[str, str]]:
return dict(self.config["labels"])
@property
def default_color(self) -> str:
return str(self.config["default_label_color"])
def run_cmd(cmd: str) -> None:
"""Runs command ignoring expected idempotent errors (e.g. label already exists or not on issue)."""
try:
subprocess.run(
cmd,
shell=True,
check=True,
capture_output=True,
text=True,
encoding="utf-8",