Skip to content

Commit fe42874

Browse files
account for optional ref
1 parent 57cd55a commit fe42874

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli-lib/projects.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ async function downloadProject(
6464
let zipUrl;
6565
if (releaseType === GITHUB_RELEASE_TYPES.REPOSITORY) {
6666
logger.log(`Fetching ${releaseType} with name ${repoName}...`);
67-
zipUrl = `https://api.github.com/repos/HubSpot/${repoName}/zipball/${ref}`;
67+
zipUrl = `https://api.github.com/repos/HubSpot/${repoName}/zipball${
68+
ref ? `/${ref}` : ''
69+
}`;
6870
} else {
6971
const releaseData = await fetchReleaseData(repoName, tag);
7072
if (!releaseData) return;

0 commit comments

Comments
 (0)