Skip to content

Instantly share code, notes, and snippets.

@davidteren
Created July 12, 2025 08:40
Show Gist options
  • Save davidteren/d76e5fa605f1d86286b9760631312807 to your computer and use it in GitHub Desktop.
Save davidteren/d76e5fa605f1d86286b9760631312807 to your computer and use it in GitHub Desktop.
GitHub Label Configuration Script
#!/bin/bash
# GitHub Label Configuration Script
# Creates comprehensive label system with color psychology and workflow organization
# Based on search results best practices
git_hub_label_configuration_script
# --------------------------
# Core Issue Types
# --------------------------
# Bug - Critical system failures (Red for urgency)
gh label create bug --color d93f0b --description "System malfunction or error" --force
# Enhancement - New features (Green for growth)
gh label create enhancement --color 0e8a16 --description "New feature or improvement request" --force
# Duplicate - Redundant issues (Yellow for caution)
gh label create duplicate --color ffde5c --description "This issue or PR already exists" --force
# Question - Inquiries needing clarification (Gray for neutrality)
gh label create question --color 6e7781 --description "Needs clarification or discussion" --force
# Invalid - Incorrectly categorized issues (Light gray)
gh label create invalid --color eaeef2 --description "Does not meet issue criteria" --force
# Wontfix - Declined for implementation (Dark gray)
gh label create wontfix --color 8b949e --description "Will not be addressed" --force
# --------------------------
# Priority Levels
# --------------------------
# High Priority - Immediate attention needed (Red)
gh label create "high-priority" --color d93f0b --description "Requires urgent resolution" --force
# Medium Priority - Important but not critical (Orange)
gh label create "medium-priority" --color f78166 --description "Important but not urgent" --force
# --------------------------
# Domain/Component Labels
# --------------------------
# Architecture - System structure (Blue for technical)
gh label create architecture --color 0366d6 --description "System design and component relationships" --force
# Data - Data management (Purple)
gh label create data --color 6c5ce7 --description "Data handling and storage" --force
# Dependencies - External integrations (Teal)
gh label create dependencies --color 1d76db --description "External library or service requirements" --force
# Infrastructure - Server/environment setup (Dark blue)
gh label create infrastructure --color 1d76db --description "Server configuration and deployment" --force
# JavaScript - Frontend/client code (Yellow)
gh label create javascript --color f0e68c --description "JavaScript implementation details" --force
# Ruby - Backend code (Magenta)
gh label create ruby --color e0115f --description "Ruby implementation details" --force
# UI - User interface elements (Light blue)
gh label create ui --color 87ceeb --description "Frontend visual components" --force
# UX - User experience (Light green)
gh label create ux --color 98fb98 --description "User interaction design" --force
# Testing - Quality assurance (Purple)
gh label create testing --color 8a2be2 --description "Test cases and validation" --force
# --------------------------
# Process Workflow
# --------------------------
# Review Effort - Complexity scale (5 purple shades)
gh label create "Review effort 1/5" --color e6ccff --description "Simple review needed" --force
gh label create "Review effort 2/5" --color d2b3ff --description "Moderate review needed" --force
gh label create "Review effort 3/5" --color c299ff --description "Standard review needed" --force
gh label create "Review effort 4/5" --color b366ff --description "Complex review needed" --force
gh label create "Review effort 5/5" --color a366ff --description "Critical review needed" --force
# Help Wanted - Community assistance (Green)
gh label create "help wanted" --color 0e8a16 --description "Seeking external contributions" --force
# Good First Issue - Beginner-friendly (Light green)
gh label create "good first issue" --color 7ee787 --description "Suitable for new contributors" --force
# --------------------------
# Security & Quality
# --------------------------
# Security - Vulnerability concerns (Red)
gh label create security --color d93f0b --description "Potential security implications" --force
# Possible Security Concern - Investigate (Orange)
gh label create "Possible security concern" --color f78166 --description "Potential security issue" --force
# Technical Debt - Code maintenance (Purple)
gh label create "technical-debt" --color 6c5ce7 --description "Code quality improvements" --force
# Refactoring - Code restructuring (Blue)
gh label create refactoring --color 0366d6 --description "Code optimization and cleanup" --force
# --------------------------
# Team & Operations
# --------------------------
# Developer Experience - DX improvements (Teal)
gh label create "developer-experience" --color 1d76db --description "Workflow and tooling improvements" --force
# Developer Tools - Development utilities (Gray)
gh label create "developer-tools" --color 6e7781 --description "Development environment tools" --force
# Helpers - Support utilities (Light gray)
gh label create helpers --color eaeef2 --description "Supporting functionality" --force
# Navigation - User flow elements (Blue)
gh label create navigation --color 0366d6 --description "Menu and routing components" --force
# Optimization - Performance improvements (Green)
gh label create optimization --color 0e8a16 --description "Efficiency improvements" --force
# Performance - Speed/load metrics (Yellow)
gh label create performance --color f0e68c --description "Response time and resource usage" --force
# Development - General coding (Orange)
gh label create development --color f78166 --description "General implementation work" --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment