Skip to content

Instantly share code, notes, and snippets.

View martindafonte's full-sized avatar
💻
Working

Martín Da Fonte martindafonte

💻
Working
View GitHub Profile
@martindafonte
martindafonte / import-github-labels.js
Created June 22, 2018 16:56 — forked from Isaddo/import-github-labels.js
import github labels via console command
/*
Go on your labels page (https://github.com/user/repo/labels)
Edit the following label array
or
Use this snippet to export github labels (https://gist.github.com/MoOx/93c2853fee760f42d97f)
and replace it
Paste this script in your console
Press Enter!!
@martindafonte
martindafonte / index.js
Last active June 22, 2018 16:55 — forked from MoOx/index.js
Export/import github labels
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),