Skip to content

feat: check updates using stable repository id - #6

Merged
vitorhugo-dotnet merged 12 commits into
mainfrom
feat/repository-id-update-check
Aug 10, 2026
Merged

feat: check updates using stable repository id#6
vitorhugo-dotnet merged 12 commits into
mainfrom
feat/repository-id-update-check

Conversation

@vitorhugo-dotnet

Copy link
Copy Markdown
Owner

Summary

  • resolve the GitHub repository from the stable numeric repository ID (1326685411) before requesting the latest release
  • avoid hardcoding the current GitHub username/owner in the runtime update flow
  • compare the embedded build-N tag with the latest published release
  • expose update checks through the Wails desktop bridge
  • show an Update build-N action in the desktop header when a newer executable is available
  • embed the GitHub Actions run number in the Windows executable through Wails -ldflags

Update flow

  1. GET /repositories/1326685411
  2. read the repository's current full_name
  3. GET /repos/{full_name}/releases/latest
  4. compare build-N values
  5. surface the .exe asset when a newer build exists

This keeps update discovery working if the account username changes or the repository is transferred/renamed, as long as the repository itself keeps the same numeric ID.

Tests

  • backend contract test verifies that repository lookup happens by numeric ID and that the returned renamed owner is used for the release request
  • backend test verifies that the current build is not reported as an update
  • frontend component tests cover the update action and the no-update state

Notes

Update checks are best-effort and do not block the runner UI if GitHub is unavailable.

@vitorhugo-dotnet
vitorhugo-dotnet merged commit 4488e97 into main Aug 10, 2026
3 checks passed
@vitorhugo-dotnet
vitorhugo-dotnet deleted the feat/repository-id-update-check branch August 10, 2026 21:14
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.

1 participant