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.

Revisions

  1. VickiLanger created this gist Apr 12, 2019.
    13 changes: 13 additions & 0 deletions embed-open-bugs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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>");
    });
    });
    });