Skip to content

Instantly share code, notes, and snippets.

@gustavomorinaga
Created February 26, 2025 16:14
Show Gist options
  • Select an option

  • Save gustavomorinaga/33d427e97c91a04f531ae5098f23f84b to your computer and use it in GitHub Desktop.

Select an option

Save gustavomorinaga/33d427e97c91a04f531ae5098f23f84b to your computer and use it in GitHub Desktop.
Simple function to extract all text commits from pull request page.
function extractCommitsFromPR() {
return [
...document
.querySelector('#commits_bucket')
.querySelectorAll('li.Box-row a.js-navigation-open'),
].map(commit => commit.textContent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment