Compare commits

..

2 Commits

3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,10 @@
# Changelog # Changelog
## [1.1.0] - 2025-02-16 ## [1.1.0] - 2025-02-16
### Changed
- clean up changelog and update script execution in platformio.ini
- update changelog for version 1.1.0
### Fixed ### Fixed
- correct version number in nav bar - correct version number in nav bar

View File

@ -53,4 +53,4 @@ extra_scripts =
pre:scripts/pre_spiffs.py pre:scripts/pre_spiffs.py
pre:scripts/gzip_files.py pre:scripts/gzip_files.py
pre:scripts/extra_script.py pre:scripts/extra_script.py
pre:scripts/update_changelog.py #post:scripts/update_changelog.py

View File

@ -78,19 +78,15 @@ def push_changes(version):
subprocess.run(['git', 'push', 'origin'], check=True) subprocess.run(['git', 'push', 'origin'], check=True)
print("Successfully pushed to origin") print("Successfully pushed to origin")
# Ask for upstream push
response = input("Do you want to push to GitHub (upstream)? (y/n): ").lower()
if response == 'y':
subprocess.run(['git', 'push', 'upstream'], check=True)
print("Successfully pushed to upstream")
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print(f"Error during git operations: {e}") print(f"Error during git operations: {e}")
return False return False
return True return True
def update_changelog(): def update_changelog():
print("Starting changelog update...") # Add this line
version = get_version() version = get_version()
print(f"Current version: {version}") # Add this line
today = datetime.now().strftime('%Y-%m-%d') today = datetime.now().strftime('%Y-%m-%d')
script_dir = os.path.dirname(os.path.abspath(__file__)) script_dir = os.path.dirname(os.path.abspath(__file__))