Created
October 18, 2017 00:29
-
-
Save reidblomquist/0d3c07c875488b994788b2bb595b65c4 to your computer and use it in GitHub Desktop.
Github PR Approval Email Bookmarklet
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
javascript:( | |
(function(){ | |
var project = document.querySelector('[itemprop=name]').textContent.trim().toUpperCase(); | |
var title = document.querySelector('.js-issue-title').textContent.trim(); | |
var comments = document.querySelector('.timeline-comment-wrapper').querySelector('.comment-body').textContent.trim().split('\n').join('%0D%0A'); | |
var url = window.location.href; | |
var subject = `Alpha approval request for: ${project} ${title}`; | |
var body = `Requesting Alpha deploy approval for ${project}: ${title}%0D%0A%0D%0AChangelog:%0D%0A${comments}%0D%0A%0D%0AView more here: ${url}`; | |
window.open(`mailto:<mailto_addr_here>?subject=${subject}&body=${body}`); | |
})() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment