Add unified Gitea skill workflows
This commit is contained in:
@@ -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 ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user