Compare commits

...

4 Commits

Author SHA1 Message Date
f5a1debd7d docs: update changelog and header for version v2.0.4
All checks were successful
Release Workflow / detect-provider (push) Successful in 4s
Release Workflow / github-release (push) Has been skipped
Release Workflow / gitea-release (push) Successful in 3m10s
2025-09-02 18:49:42 +02:00
37309da185 docs: update platformio.ini for version v2.0.4 2025-09-02 18:49:42 +02:00
bcb7c039e2 refactor: filter out automatic release documentation commits in changelog categorization 2025-09-02 18:49:25 +02:00
98ec5b9846 refactor: disable auto tare and weight filter reset in scale loop 2025-09-02 18:47:02 +02:00
4 changed files with 22 additions and 8 deletions

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## [2.0.4] - 2025-09-02
### Changed
- filter out automatic release documentation commits in changelog categorization
- disable auto tare and weight filter reset in scale loop
## [2.0.3] - 2025-09-02 ## [2.0.3] - 2025-09-02
### Added ### Added
- add updateOctoSpoolId for OctoPrint integration and change autoSetToBambuSpoolId type to uint16_t - add updateOctoSpoolId for OctoPrint integration and change autoSetToBambuSpoolId type to uint16_t

View File

@@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[common] [common]
version = "2.0.3" version = "2.0.4"
to_old_version = "1.5.10" to_old_version = "1.5.10"
## ##

View File

@@ -42,6 +42,12 @@ def categorize_commit(commit_msg):
"""Categorize commit messages based on conventional commits""" """Categorize commit messages based on conventional commits"""
lower_msg = commit_msg.lower() lower_msg = commit_msg.lower()
# Filter out automatic release documentation commits
if ('docs:' in lower_msg and
('update changelog and header for version' in lower_msg or
'update platformio.ini for' in lower_msg)):
return None # Skip these commits
# Check for breaking changes first # Check for breaking changes first
if ('!' in commit_msg and any(x in lower_msg for x in ['feat!', 'fix!', 'chore!', 'refactor!'])) or \ if ('!' in commit_msg and any(x in lower_msg for x in ['feat!', 'fix!', 'chore!', 'refactor!'])) or \
'breaking change' in lower_msg or 'breaking:' in lower_msg: 'breaking change' in lower_msg or 'breaking:' in lower_msg:
@@ -77,6 +83,7 @@ def get_changes_from_git():
for commit in commits: for commit in commits:
if commit: if commit:
category = categorize_commit(commit) category = categorize_commit(commit)
if category is not None: # Skip commits that return None (filtered out)
# Clean up commit message # Clean up commit message
clean_msg = re.sub(r'^(feat|fix|chore|docs|style|refactor|perf|test)(\(.*\))?!?:', '', commit).strip() clean_msg = re.sub(r'^(feat|fix|chore|docs|style|refactor|perf|test)(\(.*\))?!?:', '', commit).strip()
# Remove BREAKING CHANGE prefix if present # Remove BREAKING CHANGE prefix if present

View File

@@ -167,8 +167,9 @@ void scale_loop(void * parameter) {
if (autoTare && scale_tare_counter >= 5) if (autoTare && scale_tare_counter >= 5)
{ {
Serial.println("Auto Tare scale"); Serial.println("Auto Tare scale");
scale.tare(); //scale.tare();
resetWeightFilter(); // Reset filter after auto tare //resetWeightFilter(); // Reset filter after auto tare
scaleTareRequest = true;
scale_tare_counter = 0; scale_tare_counter = 0;
} }