Skip to content

Instantly share code, notes, and snippets.

@LinusU
Forked from albinekb/Github automerge
Last active May 13, 2016 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinusU/04141fe07bbb229cf6201654ceeb8112 to your computer and use it in GitHub Desktop.
Save LinusU/04141fe07bbb229cf6201654ceeb8112 to your computer and use it in GitHub Desktop.
function run () {
var updateButton = document.querySelector('.branch-action-btn button')
var mergeButton = document.querySelector('.merge-message button')
if (!mergeButton.disabled) {
mergeButton.click()
return
}
if (!updateButton.disabled) {
updateButton.click()
}
setTimeout(run, 5000)
}
setTimeout(run, 5000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment