Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

ci: limit commitlint to pull requests (#843)

JD Davisb723874d1235
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index aaf9a1e00..fa0de389a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -279,7 +279,7 @@ jobs:
run: pytest tests/test_integrations/agno/ -v
commitlint:
- if: github.event_name != 'push' || !startsWith(github.event.head_commit.message, 'Merge pull request ')
+ if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
diff --git a/tests/test_release_workflows.py b/tests/test_release_workflows.py
index eba8ac743..8448bc4ea 100644
--- a/tests/test_release_workflows.py
+++ b/tests/test_release_workflows.py
@@ -69,11 +69,10 @@ def test_macos_native_wrapper_dependency_install_retries_pypi_downloads() -> Non
assert "python -m pip install --retries 10 --timeout 60 pytest" in content
-def test_ci_commitlint_skips_default_github_merge_commits() -> None:
+def test_ci_commitlint_runs_only_for_pull_requests() -> None:
content = (ROOT / ".github" / "workflows" / "ci.yml").read_text(encoding="utf-8")
- assert "github.event_name != 'push'" in content
- assert "!startsWith(github.event.head_commit.message, 'Merge pull request ')" in content
+ assert "github.event_name == 'pull_request'" in content
def test_no_openssl_sys_in_wheel_build_tree() -> None: