Files
mailflare/src
Bruce McLachlanandClaude Opus 5 131336fe47 fix(update): resolve the source repository and dispatch the right workflow
The admin update check could never succeed:

- UPDATE_SOURCE_REPOSITORY pointed at hieunc229/mailflare-team, which is not
  publicly reachable, so getTargetVersion() always failed with "Could not read
  the target repository version".
- getDispatchConfig() hardcoded the same repository and ignored
  GITHUB_UPDATE_REPO, so the configured installation repository was unused.
- dispatchUpdateWorkflow() looked the workflow up by the display name
  "Update Mailflare", but the shipped workflow is named "Dashboard Update".
  find() returned undefined and the call threw a TypeError on item.id.

Point the version check at this repository, read GITHUB_UPDATE_REPO (failing
with a clear message when unset), and dispatch by workflow file name, which
GitHub accepts in place of the numeric id. That removes the dependency on the
workflow's display name entirely.

Also honour GITHUB_UPDATE_REF through the existing getDispatchRef() helper
instead of hardcoding "main" twice.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-24 17:30:10 +02:00
..
2026-07-17 17:52:48 +05:30
2026-06-18 23:24:27 +07:00
2026-06-18 23:24:27 +07:00