Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to embed the GitHub Issue Tracker in a webpage?

Tags:

github

I'd like to put it in the Progress section of my project's webpage. I tried using an iframe, and I tried using $.load(), but neither of these work.

Any ideas?

like image 671
gabe appleton Avatar asked Nov 06 '15 21:11

gabe appleton


1 Answers

If you don't need all the feature from the native GitHub issues page, you could consider listing those issue to generate your own include/presentation.

See "possible to embed Github list of issues (with specific tag) on website?"

Kasper Souren proposes below in the comments the following fiddle:

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>");
        });
    });
});
like image 111
VonC Avatar answered Oct 19 '22 19:10

VonC