Last active
September 30, 2017 17:24
-
-
Save ento/4372bdb8a59fd5fe8084 to your computer and use it in GitHub Desktop.
devtools snippet: console.log(github_issue_list_as_markdown)
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 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