New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable download template from a private github repo using personal access token #5715

Merged
merged 2 commits into from Jan 22, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

@@ -64,7 +64,7 @@ function parseGitHubURL(url) {
// validate if given url is a valid GitHub url // validate if given url is a valid GitHub url
validateUrl(url, 'github.com', 'GitHub', owner, repo); validateUrl(url, 'github.com', 'GitHub', owner, repo);


const downloadUrl = `https://github.com/${owner}/${repo}/archive/${branch}.zip`; const downloadUrl = `https://${url.auth ? `${url.auth}@` : ''}github.com/${owner}/${repo}/archive/${branch}.zip`;


return { return {
owner, owner,
ProTip! Use n and p to navigate between commits in a pull request.