Skip to content

v1.4.0 #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Jul 4, 2025
Merged

v1.4.0 #33

merged 28 commits into from
Jul 4, 2025

Conversation

rtuszik
Copy link
Owner

@rtuszik rtuszik commented Jul 1, 2025

Modularize Starwarden into a proper Python package, refactor monolithic script into reusable modules, add Apprise notifications, and update documentation for version 1.4.0.

New Features:

  • Add Apprise-based notifications with APPRISE_URLS support. (partially addresses Uptime Kuma integration #23)
  • Introduce a modular package structure (main, config, github_api, linkwarden_api, tui, utils) replacing the single starwarden.py script.

Enhancements:

  • Centralize logging with RichHandler and RotatingFileHandler in a shared logger utility.
  • Simplify entrypoint to delegate to new starwarden.main module and set a DOCKERIZED flag in Dockerfile.
  • Handle existing link exception in linkwarden 409 response. (closes Response status code: 409 - Link already exists #34)

Build:

  • Add apprise==1.9.3 to requirements.txt and bump requests and python-dotenv versions.
  • Expose DOCKERIZED environment variable in Dockerfile.

Documentation:

  • Update README to include APPRISE_URLS environment variable.
  • Adjust installation and usage instructions to reflect the new package structure.

@rtuszik rtuszik added this to the 2.0.0 milestone Jul 1, 2025
Copy link

socket-security bot commented Jul 1, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedapprise@​1.9.374100100100100
Updatedrequests@​2.32.3 ⏵ 2.32.499 +1100100100100
Updatedpython-dotenv@​1.1.0 ⏵ 1.1.199100100100100

View full report

@rtuszik rtuszik changed the title v2.0.0 v1.4.0 Jul 1, 2025
rtuszik added 5 commits July 1, 2025 22:09
…nsole logging

fix(logger): change default console log level to WARNING
fix(logger): change default file log level to INFO
…rden API

refactor(linkwarden_api): change error response content to .text for better readability
fix(main): skip processing for globally existing links in Linkwarden
fix(logger): set default enable_console_logging to true
refactor(logger): use RichHandler directly for console logging
@rtuszik rtuszik self-assigned this Jul 4, 2025
@rtuszik rtuszik removed this from the 2.0.0 milestone Jul 4, 2025
@rtuszik

This comment was marked as resolved.

sourcery-ai[bot]

This comment was marked as resolved.

rtuszik added 3 commits July 4, 2025 13:54
refactor(main.py): remove initial "Starwarden is now active" notification
refactor(logger.py): load environment variables directly in logger utility
… existence

fix(linkwarden_api): correct cursor logic for fetching existing links
refactor(main): use constant for link existence check
refactor(config): remove redundant print statement for missing environment variables
refactor(logger): improve logging handler management to prevent duplicates
fix(logger): add fallback error message for log file handler creation
feat(docker-compose.yml): add volume for starwarden.log to persist logs
sourcery-ai[bot]

This comment was marked as resolved.

@rtuszik rtuszik marked this pull request as ready for review July 4, 2025 12:17
@rtuszik rtuszik merged commit 54a4fdb into main Jul 4, 2025
7 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.

Response status code: 409 - Link already exists
1 participant