Skip to content

Add Update Check - #41

Merged
shadow578 merged 5 commits into
mainfrom
feat/update-check
Jun 3, 2026
Merged

Add Update Check#41
shadow578 merged 5 commits into
mainfrom
feat/update-check

Conversation

@shadow578

Copy link
Copy Markdown
Owner

Checklist

  • I consent to automatic PR review by GitHub Copilot.
  • I added attributon (if applicable)
  • I updated documentation (if applicable)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an asynchronous “check for updates” feature that queries the GitHub Releases API and surfaces the result in the mod’s ImGui “About” section.

Changes:

  • Introduces ZUpdateCheck helper to perform a background HTTP request to /releases/latest and parse the response.
  • Displays update status (up-to-date / update available / failed) in the main UI.
  • Extends generated build info to include repo owner/name derived from the git remote URL.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/Helpers/UpdateCheck/ZUpdateCheck.h Declares the update-check helper and its result/query API.
src/Helpers/UpdateCheck/ZUpdateCheck.cpp Implements HTTP call to GitHub API and JSON parsing for latest release info.
src/ChaosModUI.cpp Shows update-check status text/link in the “About” UI section.
src/ChaosMod.h Stores a ZUpdateCheck instance on the main plugin class.
src/ChaosMod.cpp Conditionally starts the update check during initialization via config flag.
src/BuildInfo.h Adds build info fields for repo owner/name used by the update checker.
cmake/gen-build-info.cmake Extracts repo owner/name from git remote URL into generated BuildInfo constants.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Helpers/UpdateCheck/ZUpdateCheck.h
Comment thread src/Helpers/UpdateCheck/ZUpdateCheck.h
Comment thread src/Helpers/UpdateCheck/ZUpdateCheck.cpp
Comment thread src/Helpers/UpdateCheck/ZUpdateCheck.cpp Outdated
Comment thread src/ChaosModUI.cpp
Comment thread src/Helpers/UpdateCheck/ZUpdateCheck.h
Comment thread cmake/gen-build-info.cmake
@shadow578
shadow578 merged commit cbf3e8f into main Jun 3, 2026
1 check passed
@shadow578
shadow578 deleted the feat/update-check branch June 3, 2026 16:13
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.

2 participants