Coder Social home page Coder Social logo

standard-issue's Introduction

Standard Issue

Creates, updates, and optionally removes labels from your GitHub repository's issue tracker to match a predefined configuration file. This makes it easy to set up a new repository, or match an existing repository, with your preferred issue labels.

Set Up

Install Dependencies

gem install json
gem install octokit

or with bundler

bundle install

Configure Labels File

You must create a JSON file mapping label names to their colors. The name of the file should be labels.json or else you can change the expected file name in the script configuration section.

Names are case sensitive in the labels file by default. This means that if you capitalize a name in your JSON file, but the name is lowercase on GitHub, the label will be updated to match. You can set the SKIP_EXISTING flag to skip updates to names and colors for labels which exist already.

Configure Script

The top of the script contains a configuration section listing the various configuration options. By default, the script operates in "dry run" mode which makes no API requests, and this can be disabled by setting the configuration flag.

Run Script

ruby run.rb

standard-issue's People

Contributors

unquietcode avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

standard-issue's Issues

support label descriptions

Since label descriptions are now supported by GitHub, update the script and input file format to support descriptions for labels.

This is a breaking change to be included in a future version, unless some backwards compatibility is added (such as distinguishing between flat values and complex object values).

Update GitHub API to v4

When the V3 API is officially deprecated, migrate to the new V4 GraphQL API, which will require some decent changes.

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.