Git Product home page Git Product logo

gh-labels's Introduction

GitHub Labels

We wasted a lot of time setting up labels on GitHub every time we create a new repo. We wanted a way to just automate that process, especially since we have a standard list of labels we use for all our projects.

This little Python script prompts you for a GitHub repository (and a GitHub token) and set up the labels for this repo to match what you have in a labels.yml file. This file includes a simple list of label settings;

- name: 'Status: Backlog'
  color: 'F1F8E9'
- name: 'Status: In progress'
  color: 'AED581'
(...)

Install & Run

  1. Clone the repo: git clone https://github.com/Wiredcraft/gh-labels.git

  2. Get in the folder: cd gh-labels

  3. Create and activate your virtualenv;

     virtualenv venv
     source venv/bin/activate
    
  4. Install dependencies; pip install -r requirements.txt

  5. Run it; python github.py

You'll be prompted for a valid GitHub API token (see https://github.com/settings/tokens) as well as the repo name in the Wiredcraft/gh-labels format.

The labels are defined in the labels.yml file. Modify it to fit your needs.

gh-labels's People

Contributors

hunvreus avatar quentinberder avatar

Stargazers

David Fundingsland avatar Paul Vollmer avatar Michael Leonard avatar Jeff Triplett avatar  avatar

Watchers

Makara Wang avatar kuno avatar Jonathan Dai avatar  avatar Vincent Viallet avatar Marcio avatar Stelios avatar James Cloos avatar Juha avatar haishan avatar tomisacat avatar Fred Wang avatar 孙松 avatar Chopper Lee avatar Xavier Zhou avatar Baruch Berger avatar Wei avatar Borat avatar Jamie Stobbs avatar Qingfeng avatar  avatar Kate Wu avatar Charlie Li avatar fawzi bedidi avatar Tommy avatar Jan avatar Jiaxi Zhang avatar Ray Wang avatar Kaleo avatar Lennon Cheng avatar mikelhsia avatar David Guan avatar Vera avatar John Roberts avatar Mary avatar Leo Zhou avatar  avatar Iris avatar Peter Pierzchanowski avatar Ilya Mochalov avatar JasonWang avatar XERO avatar xiaotian avatar  avatar natalia avatar  avatar

Forkers

isabella232

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.