Created
August 29, 2022 16:22
-
-
Save jonchurch/d338330bdae9ca234f2bf4829b8f71cb to your computer and use it in GitHub Desktop.
This file contains hidden or 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 copyBranch() { | |
navigator.clipboard.writeText( | |
document.querySelector('.pr-header-branches').children[0].textContent | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment