Last active
February 13, 2018 14:48
-
-
Save FinalAngel/8d7076f4fdb09544c44a355df5b2f822 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
/* | |
Remove all labels and then import | |
Original from https://gist.github.com/Isaddo/7efebcb673a0957b9c6f07cd14826ea4 | |
*/ | |
[ | |
{ | |
"name": "blocker", | |
"color": "eb6420" | |
}, | |
{ | |
"name": "easy pickings", | |
"color": "bfe5bf" | |
}, | |
{ | |
"name": "kind: bug", | |
"color": "c7def8" | |
}, | |
{ | |
"name": "kind: cleanup", | |
"color": "c7def8" | |
}, | |
{ | |
"name": "kind: enhancement", | |
"color": "c7def8" | |
}, | |
{ | |
"name": "needs adjustments", | |
"color": "e11d21" | |
}, | |
{ | |
"name": "needs design decision", | |
"color": "e11d21" | |
}, | |
{ | |
"name": "needs docs", | |
"color": "f7c6c7" | |
}, | |
{ | |
"name": "needs expert opinion", | |
"color": "e11d21" | |
}, | |
{ | |
"name": "needs more info", | |
"color": "e11d21" | |
}, | |
{ | |
"name": "needs patch", | |
"color": "f7c6c7" | |
}, | |
{ | |
"name": "needs tests", | |
"color": "f7c6c7" | |
}, | |
{ | |
"name": "port backwards", | |
"color": "d4c5f9" | |
}, | |
{ | |
"name": "port forwards", | |
"color": "d4c5f9" | |
}, | |
{ | |
"name": "status: accepted", | |
"color": "0052cc" | |
}, | |
{ | |
"name": "status: has patch", | |
"color": "0052cc" | |
}, | |
{ | |
"name": "status: marked for rejection", | |
"color": "000000" | |
}, | |
{ | |
"name": "status: non-issue", | |
"color": "000000" | |
}, | |
{ | |
"name": "status: on hold", | |
"color": "000000" | |
}, | |
{ | |
"name": "status: ready for review", | |
"color": "0052cc" | |
}, | |
{ | |
"name": "status: ready to be merged", | |
"color": "0052cc" | |
}, | |
{ | |
"name": "status: won't fix", | |
"color": "000000" | |
}, | |
{ | |
"name": "status: work in progress", | |
"color": "0052cc" | |
} | |
].forEach(function(label) { | |
document.querySelector('.js-details-target').click() | |
document.querySelector('.js-new-label-name-input').value = label.name | |
document.querySelector('.js-new-label-color-input').value = '#' + label.color | |
document.querySelector('.js-create-label .btn-primary').disabled = false | |
document.querySelector('.js-create-label .btn-primary').click() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment