25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
ci: hide issue moderation script from logs
t8y232f48cc4e12b
diff --git a/.github/scripts/evaluate-issue-content.sh b/.github/scripts/evaluate-issue-content.shnew file mode 100644index 0000000000..488eba4184--- /dev/null+++ b/.github/scripts/evaluate-issue-content.sh@@ -0,0 +1,28 @@+set -euo pipefail++issue_text="$(+ jq -r '+ [+ .issue.title // "",+ .issue.body // ""+ ] | join("\n")+ ' "$GITHUB_EVENT_PATH"+)"++issue_number="$(jq -r '.issue.number' "$GITHUB_EVENT_PATH")"++prefix="$(printf '\345\210\267')"+cn_target="$(printf '\346\230\237')"+ascii_target="$(printf '\163\164\141\162')"+pattern="${prefix}[[:space:]]*(${cn_target}|${ascii_target})"++if grep -Eiq "$pattern" <<<"$issue_text"; then+ matched=true+else+ matched=false+fi++{+ printf 'matched=%s\n' "$matched"+ printf 'issue_number=%s\n' "$issue_number"+} >>"$GITHUB_OUTPUT"diff --git a/.github/workflows/detect-abusive-content.yml b/.github/workflows/detect-abusive-content.ymlindex b225a7727b..e1b44b4621 100644--- a/.github/workflows/detect-abusive-content.yml+++ b/.github/workflows/detect-abusive-content.yml@@ -51,31 +51,14 @@ jobs:runs-on: ubuntu-latestif: github.event_name == 'issues'steps:+ - name: Checkout+ uses: actions/checkout@v4+ with:+ persist-credentials: false+- name: Evaluate issue contentid: check- run: |- python3 - <<'PYEOF'- import json- import os- import re-- with open(os.environ["GITHUB_EVENT_PATH"], encoding="utf-8") as f:- event = json.load(f)-- issue = event["issue"]- text = "\n".join([- issue.get("title") or "",- issue.get("body") or "",- ])-- # Keep this intentionally narrow. It only matches "刷星" and- # case-insensitive variants of "刷star", including optional spaces.- matched = re.search(r"刷\s*(?:星|star)", text, re.IGNORECASE) is not None-- with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as f:- f.write(f"matched={'true' if matched else 'false'}\n")- f.write(f"issue_number={issue['number']}\n")- PYEOF+ run: bash .github/scripts/evaluate-issue-content.sh- name: Apply issue policyif: steps.check.outputs.matched == 'true'