INNER CODE UNIT · Python
default_color
jacobdjwilson/awesome-annual-security-reports · .github/scripts/apply-triage-label.py:66
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",
)
except subprocess.CalledProcessError:
pass