Last active
October 19, 2020 14:48
-
-
Save Pezmc/92a4fd73ce344c4760695d1d8b034826 to your computer and use it in GitHub Desktop.
Copy the current PR to your clipboard
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
function copytext(a) { | |
var b = document.createElement("textarea"); | |
b.innerText = a, document.body.appendChild(b), b.select(), document.execCommand("copy"), b.remove() | |
} | |
copytext("@cobot deploy harvestapp: PR " + document.querySelector('.gh-header-number').innerText + " - " + document.querySelector('.js-issue-title').innerText.trim() + ", see " + window.location); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment