mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-11-05 06:23:22 +00:00
feat: Implement SSH-based version checking for private repositories
- Replace HTTPS GitHub API calls with SSH git commands - Use existing deploy key for private repository access - Add proper error handling for SSH authentication issues - Support fetching latest tags via git ls-remote - Maintain compatibility with private repositories using deploy keys This allows the version checking system to work with private repositories that have SSH deploy keys configured, using the same authentication as the local git operations.
This commit is contained in:
@@ -178,6 +178,12 @@ export const formatDate = (date) => {
|
||||
return new Date(date).toLocaleString()
|
||||
}
|
||||
|
||||
// Version API
|
||||
export const versionAPI = {
|
||||
getCurrent: () => api.get('/version/current'),
|
||||
checkUpdates: () => api.get('/version/check-updates'),
|
||||
}
|
||||
|
||||
export const formatRelativeTime = (date) => {
|
||||
const now = new Date()
|
||||
const diff = now - new Date(date)
|
||||
|
||||
Reference in New Issue
Block a user