Skip to content

Instantly share code, notes, and snippets.

@kiwiholmberg
Created September 1, 2016 11:42
Show Gist options
  • Save kiwiholmberg/ee7531ce19f528d26f68ce250f8a12d6 to your computer and use it in GitHub Desktop.
Save kiwiholmberg/ee7531ce19f528d26f68ce250f8a12d6 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()
setTimeout(function() {
document.querySelector('.js-merge-commit-button').click()
} , 3000)
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