Skip to content

fix: skip version bump requirement for test/doc-only changes#28

Merged
TheRealAgentK merged 2 commits intomasterfrom
fix/version-check-test-only
Apr 16, 2026
Merged

fix: skip version bump requirement for test/doc-only changes#28
TheRealAgentK merged 2 commits intomasterfrom
fix/version-check-test-only

Conversation

@TheRealAgentK
Copy link
Copy Markdown
Collaborator

@TheRealAgentK TheRealAgentK commented Apr 16, 2026

Problem

The version checker fails PRs that only add/modify test files, docs, or requirements — demanding a version bump even though no integration code changed.

The only_tests_docs flag was already computed in get_diff_stats() but never used anywhere.

Fix

  1. recommend_bump() — returns "patch" early when only_tests_docs is true, preventing test file class/def lines from being counted as "new features" (which was recommending a minor bump)

  2. check_version_bump() — skips the version check entirely when only tests/docs/requirements changed and the config (actions + auth) is unchanged. Prints ✅ No version bump needed (only tests/docs changed)

Context

Discovered while testing PR Autohive-AI/autohive-integrations#250 which adds unit tests to 5 integrations — CI was failing with "Version not incremented" for all 5 even though only tests/ files were added.

The version checker computed an only_tests_docs flag but never used it,
causing test-only PRs to fail with 'version not incremented'. Now:

1. recommend_bump() returns 'patch' early when only_tests_docs is true
2. check_version_bump() skips the version check entirely when only
   tests/docs/requirements changed and the config is unchanged
@TheRealAgentK TheRealAgentK force-pushed the fix/version-check-test-only branch from 2a46d21 to c8c5766 Compare April 16, 2026 01:50
@TheRealAgentK TheRealAgentK merged commit 0aa012e into master Apr 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants