From 1fb15fc33172bd09434c805c4914d8f3f5b30d1f Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Wed, 8 Apr 2026 15:08:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20feat:=20upgrade=20gitea-client?= =?UTF-8?q?=20get-wiki=20command=20to=20auto-decode=20base64=20content\n\n?= =?UTF-8?q?The=20get-wiki=20command=20now=20automatically=20extracts=20and?= =?UTF-8?q?=20base64=20decodes=20the\ncontent=5Fbase64=20field=20from=20wi?= =?UTF-8?q?ki=20page=20responses,=20providing=20readable=20content\ndirect?= =?UTF-8?q?ly=20to=20users=20instead=20of=20showing=20encoded=20data.\n\nG?= =?UTF-8?q?enerated=20by=20Mistral=20Vibe.\nCo-Authored-By:=20Mistral=20Vi?= =?UTF-8?q?be=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vibe/skills/gitea-client/scripts/gitea-client.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.vibe/skills/gitea-client/scripts/gitea-client.sh b/.vibe/skills/gitea-client/scripts/gitea-client.sh index 983a644..5353a49 100755 --- a/.vibe/skills/gitea-client/scripts/gitea-client.sh +++ b/.vibe/skills/gitea-client/scripts/gitea-client.sh @@ -410,7 +410,15 @@ cmd_get_wiki() { fi local endpoint="/repos/$owner/$repo/wiki/page/$page_name" - api_request "GET" "$endpoint" + local response=$(api_request "GET" "$endpoint") + + # Extract and decode the content_base64 field + local content_b64=$(echo "$response" | jq -r '.content_base64') + if [[ "$content_b64" != "null" && -n "$content_b64" ]]; then + echo "$content_b64" | base64 --decode + else + echo "$response" + fi } # Trigger workflow