Closed wzulfikar closed 3 years ago
Amazing work! Thanks for digging into this, @wzulfikar—I’ll work on a fix right away.
Fixed in c196701!
The macOS build will be uploaded in a second, and the iOS build will hopefully be available in the next ~48hrs!
If one of the deployment is from Gitlab, the app will crash because it could not find the deployment url due to invalid structure.
https://github.com/daneden/zeitgeist/blob/3d2a78db50b92b1f43838e0ead7ae387f0348630/Shared/Models/GitCommit.swift#L68-L71
Based on above code (L70-71), if my Gitlab repo is:
wzulfikar
Acme App
The resulting url will be
https://gitlab.com/Acme App/wzulfikar/-/commit/[some commit hash]
. This results to 404 and make the app crash.To fix this, the correct commit for Gitlab repo should be
https://gitlab.com/wzulfikar/acme-app/-/commit/[some commit hash]
:self.repoKey
andself.namespaceKey
:self.repoKey
should beProjectName
self.namespaceKey
should beProjectNamespace
https://gitlab.com/wzulfikar/Acme App/...
, it should behttps://gitlab.com/wzulfikar/acme-app/...
To add more context, here's some screenshots:
This will crash right after login:
This will not crash:
P.S:
Hope it helps!