{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771923126,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","fix new branch creation"]],"content":"Signed commit: fix new branch creation","id":"7802c9afbf005e2637282f9d06ac8130fe27bfe3a94cc67c211da51d2e9e8350","sig":"30978d6a71b4935c88ff9cd1412294d850a752977943e1aa65bcfc2290d2f2e8bbce809556849a14f0923da33b12cb53d3339741cdabab3ba949dfbb48e9cc4c"}
{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771923236,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","clean up build warning"]],"content":"Signed commit: clean up build warning","id":"297f43968ae4bcfc8b054037b914a728eaec805770ba0c02e33aab3009c1c046","sig":"91177b6f9c4cd0d69455d5e1c109912588f05c2ddbf287d606a9687ec522ba259ed83750dfbb4b77f20e3cb82a266f251983a14405babc28c0d83eb19bf3da70"}
@ -126,7 +127,8 @@ export async function tryApiFetch(
@@ -126,7 +127,8 @@ export async function tryApiFetch(
branches: metadata.branches||[],
defaultBranch: metadata.defaultBranch||'main',
files: metadata.files||[],
commits: metadata.commits||[]
commits: metadata.commits||[],
tags: metadata.tags||[]
};
}else{
logger.warn({url,npub,repoName,attempt: i+1,total: sortedUrls.length},`[${i+1}/${sortedUrls.length}] fetchRepoMetadata returned null, trying next URL`);
?'Repository is not cloned locally and could not be fetched via API from external clone URLs. Privileged users can clone this repository using the "Clone to Server" button.'
?`Repository is not cloned locally and could not be fetched via API from external clone URLs (${cloneUrlTypes.join(', ')}). This may be due to API rate limits, network issues, or the repository being private. Privileged users can clone this repository using the "Clone to Server" button.`
:'Repository is not cloned locally and has no external clone URLs for API fallback. Privileged users can clone this repository using the "Clone to Server" button.',
logger.info({npub: context.npub,repo: context.repo,branchCount: apiData.branches.length},'Successfully fetched branches via API fallback for empty repo');
logger.info({npub: context.npub,repo: context.repo,commitCount: apiData.commits.length},'Successfully fetched commits via API fallback for empty repo');