fix(#812): resolve subpath-mounted gitea repo slug
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
ms-lead-reviewer
2026-07-20 01:11:42 -05:00
parent 1b1902010a
commit 571b65d336
4 changed files with 93 additions and 9 deletions

View File

@@ -109,7 +109,6 @@ elif [[ "$PLATFORM" == "gitea" ]]; then
exit 1
fi
repo=$(get_repo_slug)
host=$(get_remote_host)
token=$(get_gitea_token "$host") || {
echo "Error: Gitea token not found for comment persistence" >&2
@@ -119,6 +118,10 @@ elif [[ "$PLATFORM" == "gitea" ]]; then
echo "Error: Configured Gitea URL not found for comment persistence" >&2
exit 1
}
repo=$(get_gitea_repo_slug_for_url "$configured_url") || {
echo "Error: Could not resolve Gitea owner/repository relative to configured URL" >&2
exit 1
}
api_base="${configured_url%/}/api/v1/repos/$repo"
payload=$(COMMENT_BODY="$COMMENT" python3 -c '
import json