This commit is contained in:
Andras Bacsai
2022-10-12 12:02:47 +02:00
parent bef5da49cf
commit 324038486f
4 changed files with 110 additions and 88 deletions

View File

@@ -102,10 +102,8 @@
: {
Authorization: `Bearer ${$appSession.tokens.gitlab}`
};
if (isPublicRepository) {
return;
}
const url = isPublicRepository ? `` : `/v4/projects/${projectId}/repository/tree`;
const url = isPublicRepository ? `/projects/${projectId}/repository/tree` : `/v4/projects/${projectId}/repository/tree`;
const files = await get(`${apiUrl}${url}`, {
...headers
});