WeKnora/.github/workflows
wizardchen 9b0b0910ba ci(lint): filter new issues from git instead of the PR patch API
`only-new-issues: true` makes golangci-lint-action ask the GitHub API for
the pull request patch, and that endpoint refuses any diff over 20000
lines:

    failed to fetch pull request patch: RequestError [HttpError]:
    Sorry, the diff exceeded the maximum number of lines (20000):
    {"resource":"PullRequest","field":"diff","code":"too_large"}

The action does not fail on that error — it falls back to linting
everything. With the backlog this repository carries (5672 findings at
the time of writing) the job then reports hundreds of issues in files the
pull request never touched, capped at 50 per linter, and cannot pass no
matter how clean the change is. Tencent/WeKnora#3470 hit this at 28050
diff lines.

golangci-lint computes the same filter itself with --new-from-merge-base,
which reads git rather than the API and has no size limit. `fetch-depth: 0`
on the checkout is what makes the base commit available, and the changes
job above already relies on it, so nothing else needs to move.

Verified against that pull request's branch: full run reports 5672 issues,
`--new-from-merge-base=<base sha>` reports 0, both from the repository root
and from the cli module directory.
2026-09-20 17:42:43 +08:00
..
anydoc.yml fix(anydoc): rebuild truncated patched crate instead of failing cargo 2026-08-21 16:16:33 +08:00
app.yml fix(sandbox): separate file access from artifact publishing (#3356) 2026-09-17 16:18:01 +08:00
cli-e2e.yml refactor(cli): --limit/--all-pages, Go 1.26, internal/agent → aiclient 2026-05-15 12:03:56 +08:00
cli.yml docs(cli): sweep stale wire vocab from AGENTS.md and close the CI gap that let it drift 2026-08-20 18:16:21 +08:00
docker-image.yml feat(sandbox): add a graphical desktop to session sandboxes (#3245) 2026-09-14 20:37:37 +08:00
docreader.yml fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
dsh-plugin.yml ci(dsh-weknora): restore e2e timeout for cold dsh cache 2026-08-21 14:36:45 +08:00
frontend.yml feat(ui): multi-stage Docker frontend build (no host npm) (#3074) 2026-09-07 19:33:57 +08:00
go-lint-cache.yml ci: add golangci-lint workflow gating new PR code (#2696) 2026-08-13 19:26:30 +08:00
go-lint.yml ci(lint): filter new issues from git instead of the PR patch API 2026-09-20 17:42:43 +08:00
mcp-server.yml fix(mcp-server): adopt official PyPI package tencent-weknora-mcp [v1.1.1] 2026-07-30 15:52:28 +08:00
release-lite.yml fix: remove GPL converter and bundle third-party license sources 2026-09-08 15:19:10 +08:00