Skip to content

Instantly share code, notes, and snippets.

@VickiLanger
Created April 12, 2019 19:21
Show Gist options
  • Save VickiLanger/c81ef85e293c4cbeb35fa29ca6871667 to your computer and use it in GitHub Desktop.
Save VickiLanger/c81ef85e293c4cbeb35fa29ca6871667 to your computer and use it in GitHub Desktop.
Embed GitHub open bugs listing
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