Skip to content

script to initialize a GitHub repository with a standard set of issue labels

Notifications You must be signed in to change notification settings

UnquietCode/Standard-Issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

script to initialize a GitHub repository with a standard set of issue labels

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published