Skip to content

Commit 97235ff

Browse files
authored
trigger fetch for new worktree (#61)
1 parent 4bd6c8c commit 97235ff

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ func ensureConfig(repoPool *repopool.RepoPool, newConfig *repopool.Config) bool
145145
success = false
146146
}
147147
}
148+
149+
// create new worktrees
150+
if len(newWTs) > 0 {
151+
repo.QueueMirrorRun()
152+
}
148153
}
149154

150155
// start mirror Loop on newly added repos

repository/repository_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (r *Repository) getGithubAppToken(ctx context.Context, repo string) (string
122122
r.githubAppToken = token.Token
123123
r.githubAppTokenExpiresAt = token.ExpiresAt
124124

125-
r.log.Info("new github app access token created")
125+
r.log.Debug("new github app access token created")
126126

127127
return r.githubAppToken, nil
128128
}

0 commit comments

Comments
 (0)