summaryrefslogtreecommitdiff
path: root/internal/sync/repository_setup.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-31 20:13:32 +0200
committerPaul Buetow <paul@buetow.org>2025-10-31 20:13:32 +0200
commit11eea6a82cbfdde40ec1457c6ea080da4da6b7dc (patch)
tree8026068f6a3beb3ee02c45f06f4487f4b89caaf1 /internal/sync/repository_setup.go
parent5c3e0b5cf99d028c4f06be7a825388b296e37a22 (diff)
feat: implement amp AI tool support and replace Taskfile with Magev0.10.0
- Add amp as default AI tool for release notes and showcase generation - Fallback chain: amp → hexai → claude → aichat - Replace Taskfile.yaml with magefile.go for build automation - Update all documentation (README.md, AGENTS.md, doc/development.md) - Update version to 0.10.0 Amp-Thread-ID: https://ampcode.com/threads/T-735ba1e2-0255-4b43-8ed1-6c0d2f78301b Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'internal/sync/repository_setup.go')
-rw-r--r--internal/sync/repository_setup.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/sync/repository_setup.go b/internal/sync/repository_setup.go
index 3ebafbd..7e2c40e 100644
--- a/internal/sync/repository_setup.go
+++ b/internal/sync/repository_setup.go
@@ -54,12 +54,12 @@ func (s *Syncer) setupNewRepository(repoPath string) error {
continue // Skip the first org we already cloned from
}
org := &s.config.Organizations[i]
-
+
// Skip backup locations if backup is not enabled
if org.BackupLocation && !s.backupEnabled {
continue
}
-
+
if err := s.addRemote(repoPath, org); err != nil {
return fmt.Errorf("failed to add remote %s: %w", s.getRemoteName(org), err)
}
@@ -75,12 +75,12 @@ func (s *Syncer) setupExistingRepository(repoPath string) error {
// Check and add any missing remotes
for i := range s.config.Organizations {
org := &s.config.Organizations[i]
-
+
// Skip backup locations if backup is not enabled
if org.BackupLocation && !s.backupEnabled {
continue
}
-
+
remoteName := s.getRemoteName(org)
// Check if remote exists
@@ -115,14 +115,14 @@ func (s *Syncer) getRemotesMap() map[string]*config.Organization {
remotes := make(map[string]*config.Organization)
for i := range s.config.Organizations {
org := &s.config.Organizations[i]
-
+
// Skip backup locations if backup is not enabled
if org.BackupLocation && !s.backupEnabled {
continue
}
-
+
remoteName := s.getRemoteName(org)
remotes[remoteName] = org
}
return remotes
-} \ No newline at end of file
+}