Edit in JSFiddle

$("button").on("click", function() {
	
  var userGithub = $("input").val();
	var urlApiGithub = "https://api.github.com/users/" + userGithub + "/repos"

  $.ajax({
    url: urlApiGithub,
    success( dataFromGithubApi ) {
      console.log (dataFromGithubApi);
  		var listElements = "";
      $.each(dataFromGithubApi, function( index, repo ) {
        listElements += '<li><a target="_blank" href="' + repo.html_url + '">' + repo.name + '</a></li>';
      })
      $("ul").html(listElements)
    }
  })

})