Coder Social home page Coder Social logo

script-github-labels's Introduction

Modificar los "Labels" en Github

EEEEEEE         FFFFFFF lll           jjj
EE      nn nnn  FF      lll uu   uu        oooo
EEEEE   nnn  nn FFFF    lll uu   uu   jjj oo  oo
EE      nn   nn FF      lll uu   uu   jjj oo  oo
EEEEEEE nn   nn FF      lll  uuuu u   jjj  oooo
                                    jjjj

Este programa en NodeJS permite actualizar o crear labels en un repositorio de Github. Ya que no se pueden transferir de un repositorio a otro se vuelve útil para tener una serie de labels consistentes en los repositorios del laboratorio.

Usa la librería Octokit que facilita el uso del API de Github.

Credenciales

  1. Crear un Token en Github.
  2. Cambiar el nombre del archivo .env.ejemplo por .env. (los archivos .env se ignoran para no subir claves al repositorio).
  3. Pegar el token creado en el punto 1 en el archivo .env y se debe ver algo así:
TOKEN=ghp_....

Crear labels

Crear objetos en el archivo /labels.js usando la siguiente estructura para cada label:

{
  // Sólo en el caso de que ya exista.
  nombreActual: 'invalid',
  // Se pueden usar emojis en los nombres
  // https://github.com/ikatyang/emoji-cheat-sheet#table-of-contents
  nombreNuevo: 'invalido :ghost:',
  // Se debe poner el color en formato HEX sin el # inicial.
  color: 'e4e669',
  // La descripción
  desc: 'Esto no parece estar bien.',
}

Correr

En el terminal, correr el siguiente comando y se muestran las actualizaciones en el terminal.

yarn start

script-github-labels's People

Contributors

1cgonza avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.