fix: add Gitea config menu wrapper (#34)

This commit is contained in:
2026-07-02 01:51:53 -04:00
parent 389382c2bd
commit 5272e071e1
3 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ check reviewer eligibility for a PR, and generate ready-to-paste launcher
snippets for Claude / Gemini / Codex: snippets for Claude / Gemini / Codex:
```bash ```bash
python gitea_config.py menu ./scripts/gitea-config-menu
``` ```
The generated launcher snippets contain only `command`, `args`, The generated launcher snippets contain only `command`, `args`,
+1 -1
View File
@@ -108,7 +108,7 @@ Run the same server as several launcher entries (e.g. `-author`, `-reviewer`,
Create and manage profiles without hand-editing JSON: Create and manage profiles without hand-editing JSON:
```bash ```bash
python gitea_config.py menu ./scripts/gitea-config-menu
``` ```
Menu options: list / add / edit / remove profiles · validate config · test Menu options: list / add / edit / remove profiles · validate config · test
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
PYTHON="$REPO_ROOT/venv/bin/python"
if [[ ! -x "$PYTHON" ]]; then
cat >&2 <<EOF
Missing repo virtualenv Python: $PYTHON
Create/install the project virtual environment first:
python3 -m venv venv
./venv/bin/python -m pip install -r requirements.txt
Then rerun:
./scripts/gitea-config-menu
EOF
exit 1
fi
exec "$PYTHON" "$REPO_ROOT/gitea_config.py" menu "$@"