Add unified Gitea skill workflows

This commit is contained in:
zfc
2026-03-12 17:23:08 +08:00
parent 22765a2917
commit c27b85193f
26 changed files with 2725 additions and 48 deletions
@@ -43,11 +43,10 @@ def parse_args() -> argparse.Namespace:
def load_token(required: bool = True) -> str:
token = os.getenv("GITEA_ISSUE") or os.getenv("GITEA_TOKEN")
token = os.getenv("GITEA_TOKEN")
if not token and required:
raise SystemExit(
"Missing GITEA_ISSUE (or fallback GITEA_TOKEN). "
"Export the token before creating issues."
"Missing GITEA_TOKEN. Export the token before creating issues."
)
return token or ""