Skip to content

Commit

Permalink
Fix: footprint libraries wizard fails with personal GitHub accounts (…
Browse files Browse the repository at this point in the history
…now uses https://api.github.com/users/xxx instead of https://api.github.com/orgs/xxx to retrieve the list of .pretty footprint libraries)
  • Loading branch information
jp-charras authored and Wayne Stambaugh committed Jul 20, 2016
1 parent e309ca1 commit 021320b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pcbnew/github/github_getliblist.cpp
Expand Up @@ -217,8 +217,11 @@ bool GITHUB_GETLIBLIST::repoURL2listURL( const wxString& aRepoURL,

if( repo.HasServer() && repo.HasPath() )
{
// goal: "https://api.github.com/orgs/KiCad"
wxString target_url( wxT( "https://api.github.com/orgs" ) );
// goal: "https://api.github.com/users/KiCad"
// or "https://api.github.com/orgs/KiCad"
// "https://api.github.com/users/..." works both for orgs and users
// if we just retrieve the .pretty list
wxString target_url( wxT( "https://api.github.com/users" ) );
target_url += repo.GetPath();
target_url += wxT( "/repos" );

Expand Down

0 comments on commit 021320b

Please sign in to comment.