Created
April 12, 2019 19:21
-
-
Save VickiLanger/c81ef85e293c4cbeb35fa29ca6871667 to your computer and use it in GitHub Desktop.
Embed GitHub open bugs listing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var urlToGetAllOpenBugs = "https://api.github.com/repos/jquery/jquery/issues?state=open&labels=bug"; | |
$(document).ready(function () { | |
$.getJSON(urlToGetAllOpenBugs, function (allIssues) { | |
$("div").append("found " + allIssues.length + " issues</br>"); | |
$.each(allIssues, function (i, issue) { | |
$("div") | |
.append("<b>" + issue.number + " - " + issue.title + "</b></br>") | |
.append("created at: " + issue.created_at + "</br>") | |
.append(issue.body + "</br></br></br>"); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment