Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(ci): scope gofmt check to PR commits and format kb_access_test
wizardchencbe668c06fc1
diff --git a/.github/workflows/app.yml b/.github/workflows/app.ymlindex 1e1048004..1f7bce20d 100644--- a/.github/workflows/app.yml+++ b/.github/workflows/app.yml@@ -66,12 +66,19 @@ jobs:- name: Check formattingshell: bashrun: |- base="$BASE_SHA"- if [ -z "$base" ] || [[ "$base" =~ ^0+$ ]]; then- base=$(git rev-parse HEAD^)+ if [ "${{ github.event_name }}" = "pull_request" ]; then+ # Compare base..head, not the PR merge commit, so files changed only+ # on main after the branch point are not attributed to this PR.+ diff_range="${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }}"+ else+ base="$BASE_SHA"+ if [ -z "$base" ] || [[ "$base" =~ ^0+$ ]]; then+ base=$(git rev-parse HEAD^)+ fi+ diff_range="$base..$GITHUB_SHA"fiunformatted=$(- git diff --name-only --diff-filter=ACMR -z "$base" "$GITHUB_SHA" -- '*.go' ':!cli/**' |+ git diff --name-only --diff-filter=ACMR -z "$diff_range" -- '*.go' ':!cli/**' |xargs -0 -r gofmt -l)if [ -n "$unformatted" ]; then