Skip to content

Instantly share code, notes, and snippets.

@ento
Last active September 30, 2017 17:24
Show Gist options
  • Save ento/4372bdb8a59fd5fe8084 to your computer and use it in GitHub Desktop.
Save ento/4372bdb8a59fd5fe8084 to your computer and use it in GitHub Desktop.
devtools snippet: console.log(github_issue_list_as_markdown)
var s = $(".table-list-item").map(function() {
var $this = $(this);
var title = $this.find(".issue-title-link").text().trim();
var labels = $this.find(".labels a").map(function() {
return "[" + $(this).text().trim() + "]";
}).get().join("");
var id = $this.attr("id").replace("issue_", "#");
var url = $this.find(".issue-title-link").attr("href");
return "[" + id + " " + title + (labels ? " " + labels : "") + "](https://github.com" + url + ")";
}).get().join("\n");
console.log(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment