Skip to content

Commit 5954e5c

Browse files
committed
feat: add ChangelogPlugin and RichNotifier to update checker
- Import ChangelogPlugin and RichNotifier from henriqueslab_updater - Configure RichNotifier with cyan color scheme for brand consistency - Add ChangelogPlugin to show top 3 highlights from recent versions - Points to GitHub main branch CHANGELOG.md for latest changes - Matches rxiv-maker's advanced update notification pattern This provides users with immediate visibility into what's new in updates.
1 parent 05520ab commit 5954e5c

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/taskrepo/cli/main.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import click
44
from henriqueslab_updater import (
5+
ChangelogPlugin,
6+
RichNotifier,
57
check_for_updates_async_background,
68
show_update_notification,
79
)
@@ -138,7 +140,17 @@ def process_result(ctx, result, **kwargs):
138140
This runs after any command completes and checks for updates.
139141
"""
140142
# Start async update check in background (if due)
141-
check_for_updates_async_background(package_name="taskrepo", current_version=__version__)
143+
check_for_updates_async_background(
144+
package_name="taskrepo",
145+
current_version=__version__,
146+
notifier=RichNotifier(color_scheme="cyan"),
147+
plugins=[
148+
ChangelogPlugin(
149+
changelog_url="https://raw.githubusercontent.com/henriqueslab/TaskRepo/main/CHANGELOG.md",
150+
highlights_per_version=3,
151+
),
152+
],
153+
)
142154

143155
# Show any cached update notifications immediately
144156
show_update_notification()

0 commit comments

Comments
 (0)