app: if repo changes, do not autoupdate

This commit is contained in:
Girish Ramakrishnan
2026-02-09 15:47:12 +01:00
parent b9b8ccb8ae
commit c3d3c3a6e9

View File

@@ -777,6 +777,9 @@ function canAutoupdateAppSync(app, updateInfo) {
if (updateInfo.unstable) return { code: false, reason: 'Update is marked as unstable' }; // only manual update allowed for unstable updates
// for community apps, it's a warning sign when the repo changes (for example: versions domain gets hijacked)
if (docker.parseImageRef(manifest.dockerImage).fullRepositoryName !== docker.parseImageRef(app.manifest.dockerImage).fullRepositoryName) return { code: false, reason: 'Package docker image repository has changed' };
if ((semver.major(app.manifest.version) !== 0) && (semver.major(app.manifest.version) !== semver.major(manifest.version))) {
return { code: false, reason: 'Major package version requires review of breaking changes' }; // major changes are blocking
}