Skip to content

fix(update): report dev-checkout updates at release granularity - #421

Open
duketopceo wants to merge 2 commits into
omacom:quattrofrom
duketopceo:fix-update-release-notify
Open

fix(update): report dev-checkout updates at release granularity#421
duketopceo wants to merge 2 commits into
omacom:quattrofrom
duketopceo:fix-update-release-notify

Conversation

@duketopceo

Copy link
Copy Markdown

Summary

Fixes #405.

omarchy-update-available counted commits HEAD..upstream, so the bar's update icon lit on every push between releases. For dev checkouts this now resolves the newest tag reachable from upstream (git describe --tags --abbrev=0) and reports only when HEAD does not contain that release — matching the reporter's suggestion.

Upstreams with no tags keep the existing commit-count behavior. omarchy-update-dev still git pull --ff-onlys on demand regardless of the icon, so nothing about updating changes.

Test plan

  • New test/shell.d/update-available-release-test.sh builds a real bare-origin/clone pair: commits past the newest tag stay quiet, a new upstream tag reports release v1.1, tagless upstream falls back to commit count, up-to-date stays quiet — 4/4 pass
  • Verified live on this checkout: HEAD contains v4.0.2-2 → quiet despite being behind origin/quattro

Generated with Devin

The update check counted any commit HEAD was behind upstream, so the bar
icon lit on every push between releases. Resolve the newest tag reachable
from upstream and report only when HEAD does not contain it; keep the
commit count as a fallback for upstreams with no tags.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-later Port to omacom/omarchy after the overlay merges; match mainline.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update icon/logic: show update icon only when new release is out, not when new commits are pushed

3 participants