Created
September 1, 2016 11:42
-
-
Save kiwiholmberg/ee7531ce19f528d26f68ce250f8a12d6 to your computer and use it in GitHub Desktop.
This file contains 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 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