You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/docs/check_version_bump.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,9 @@ flowchart TD
62
62
E -->|Yes — existing integration| I[Compare versions]
63
63
I --> J{Files changed?}
64
64
J -->|No| G
65
-
J -->|Yes| K{Version incremented?}
65
+
J -->|Yes| TD{Only tests/docs?}
66
+
TD -->|Yes| G
67
+
TD -->|No| K{Version incremented?}
66
68
K -->|Same| L[Fail + recommend bump level]
67
69
K -->|Decreased| M[Fail]
68
70
K -->|Incremented| N{Bump level sufficient?}
@@ -118,6 +120,10 @@ The script recommends a bump level by inspecting both config.json changes and co
118
120
| New `.py` source files added (excluding tests) |**minor**|
119
121
| New `class` or `def` definitions added |**minor**|
120
122
123
+
### Test/doc-only changes
124
+
125
+
If every changed file is in `tests/`, a `.md` file, or `requirements.txt` (and the config is unchanged), the version check is **skipped entirely** — no bump is required. This allows adding or updating tests, docs, and dependencies without touching the version number.
126
+
121
127
### Fallback
122
128
123
129
If none of the above signals match, the recommendation defaults to **patch** (bug fixes, docs, dependency updates, test changes).
@@ -164,6 +170,16 @@ The recommendation is advisory — bumping at a lower level than recommended pro
164
170
========================================
165
171
```
166
172
173
+
### When only tests/docs changed (no bump needed):
174
+
175
+
```
176
+
✅ my-integration: No version bump needed (only tests/docs changed)
177
+
178
+
========================================
179
+
✅ VERSION CHECK PASSED
180
+
========================================
181
+
```
182
+
167
183
### New integration with valid version:
168
184
169
185
```
@@ -194,7 +210,7 @@ The recommendation is advisory — bumping at a lower level than recommended pro
194
210
| Files changed but version unchanged | ❌ Fails with recommendation |
195
211
| Version decreased | ❌ Fails |
196
212
| Bump level lower than recommended | ✅ Passes with ⚠️ warning |
197
-
| Only test/doc files changed, version unchanged |❌ Fails (patch bump recommended) |
213
+
| Only test/doc files changed, version unchanged |✅ Passes (no bump needed) |
198
214
| No files changed in directory | ✅ Passes (nothing to check) |
199
215
| Directory doesn't exist on disk | ⚠️ Skipped with warning |
200
216
| No `config.json` in directory | ⚠️ Skipped with warning |
0 commit comments