Skip to content

Instantly share code, notes, and snippets.

@gasparportik
Last active August 8, 2022 10:33
Show Gist options
  • Save gasparportik/eab3b473a9c2d58e3930920a940ef4e7 to your computer and use it in GitHub Desktop.
Save gasparportik/eab3b473a9c2d58e3930920a940ef4e7 to your computer and use it in GitHub Desktop.
One-liner to get a list of all commit messages for a branch compare
// for use in devtools console
console.log([...document.querySelectorAll('#commits_bucket .Details > p:first-child')].map(x => x.innerText).join("\n").replace(/…/g,''))
// for use in bookmark(prepend `javascript:`)
prompt('copy this:', [...document.querySelectorAll('#commits_bucket .Details > p:first-child')].map(x => x.innerText).join("\n").replace(/…/g,''))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment