Skip to content

Instantly share code, notes, and snippets.

@adborden
Last active March 6, 2018 15:26
Show Gist options
  • Save adborden/420f5e30c8079fa6e5d6bc2e9ddcb82b to your computer and use it in GitHub Desktop.
Save adborden/420f5e30c8079fa6e5d6bc2e9ddcb82b to your computer and use it in GitHub Desktop.
Quick setup for labels
#!/bin/bash
# gem install ghi (https://github.com/stephencelis/ghi)
set -o errexit
set -o pipefail
skills=(angular build-infrastructure campaign-finance copy design html-css jekyll js ruby sysadmin)
skill_color="#fef2c0"
features=(candidate committee contributions data historic-election multi-city page referendum search usability)
feature_color="#c5def5"
types=(bug enhancement question)
resolutions=(duplicate invalid wontfix)
statuses=(wip)
status_color="#fbca04"
# new stuff
for feature in ${features[@]}; do ghi label "feature/$feature" --color $feature_color; done
for skill in ${skills[@]}; do ghi label "skill/$skill" --color $skill_color; done
for status in ${statuses[@]}; do ghi label "status/$status" --color $status_color; done
# renames
for type in ${types[@]}; do ghi label $type --rename "type/$type"; done
for resolution in ${resolutions[@]}; do ghi label $resolution --rename "resolved/$resolution"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment