fix: public gh repo reload compose

This commit is contained in:
Andras Bacsai
2023-01-16 12:36:59 +01:00
parent dfd9272b70
commit 344c36997a
3 changed files with 62 additions and 53 deletions

View File

@@ -351,7 +351,7 @@
}
async function reloadCompose() {
if (loading.reloadCompose) return;
if (!$appSession.tokens.github) {
if (!$appSession.tokens.github && !isPublicRepository) {
const { token } = await get(`/applications/${id}/configuration/githubToken`);
$appSession.tokens.github = token;
}
@@ -385,7 +385,7 @@
}
}
if (application.gitSource.type === 'gitlab') {
if (!$appSession.tokens.gitlab) {
if (!$appSession.tokens.gitlab && !isPublicRepository) {
await getGitlabToken();
}