mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Add version notifications for new releases (#139)
* Add SSH known hosts support and optimize git status fetching * Add opencode-manager version to health endpoint * Add version notifications for new releases --------- Co-authored-by: Fran Boon <fran@aidiq.com>
This commit is contained in:
1 parent
9562867f1d
commit
b38b9e3aca
15 files changed
+261
-18
No files matched your search
@@ -38,6 +38,7 @@ export function BranchesTab({ repoId, currentBranch, repoUrl, isRepoWorktree }:
|
||||
onSuccess: (updatedRepo) => {
|
||||
queryClient.setQueryData(['repo', repoId], updatedRepo)
|
||||
queryClient.invalidateQueries({ queryKey: ['repos'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['reposGitStatus'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['gitStatus', repoId] })
|
||||
refetch()
|
||||
showToast.success(`Switched to branch: ${updatedRepo.currentBranch}`)
|
||||
@@ -55,6 +56,7 @@ export function BranchesTab({ repoId, currentBranch, repoUrl, isRepoWorktree }:
|
||||
mutationFn: (branch: string) => createRepo(repoUrl || undefined, undefined, branch, undefined, true),
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['repos'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['reposGitStatus'] })
|
||||
setNewBranchName('')
|
||||
setIsCreating(false)
|
||||
setUseWorktree(false)
|
||||
|
||||
Reference in new issue
Block a user