Remove ,.state-closed
to delete only merged
Last active
August 2, 2016 14:22
-
-
Save ssova-4xxi/d21ced3d0a81bb4e7ff7891acdab2631 to your computer and use it in GitHub Desktop.
Delete merged and closed branches github
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
document.querySelectorAll('.state-merged,.state-closed') | |
.forEach(item => { | |
item.parentNode.parentNode.getElementsByClassName('branch-delete')[0].dispatchEvent(new Event('click')) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment