Skip to content

NeaByteLab/Nea-Label-Sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 Nea Label Sync

A utility for synchronizing standardized GitHub issue and pull request labels across all repositories within the NeaByteLab and NeaDigitra organizations.


🚀 Features

  • Sync labels with custom names, colors, and descriptions
  • Organization-wide consistency: enforce the same label set on every repo
  • Easy to use: single command sync per repository, or batch for all
  • Scalable: update labels.json and sync to all repos instantly

📂 Project Structure

Nea-Label-Sync/
├── labels.json         # Label configuration file
├── README.md           # This documentation
└── sync.sh             # (Optional) Bash script for batch sync

🏁 Getting Started

1. Clone this repo

git clone https://github.com/NeaByteLab/Nea-Label-Sync.git
cd Nea-Label-Sync

2. Install github-label-sync

npm install -g github-label-sync

3. Create a GitHub Personal Access Token

4. Edit labels.json

Update or customize labels.json to match your preferred label set.

Example labels.json

[
  { "name": "bug", "color": "d73a4a", "description": "Something isn't working" },
  { "name": "documentation", "color": "0075ca", "description": "Improvements or additions to documentation" },
  { "name": "enhancement", "color": "a2eeef", "description": "New feature or request" },
  { "name": "help wanted", "color": "008672", "description": "Extra attention is needed" },
  { "name": "good first issue", "color": "7057ff", "description": "Good for newcomers" },
  { "name": "question", "color": "d876e3", "description": "Further information is requested" },
  { "name": "wontfix", "color": "ffffff", "description": "This will not be worked on" },
  { "name": "api", "color": "17a2b8", "description": "API and backend work" },
  { "name": "security", "color": "b60205", "description": "Security and vulnerability" },
  { "name": "performance", "color": "f9d0c4", "description": "Performance issue/improvement" }
]

5. Sync labels to a repository

github-label-sync --access-token <YOUR_GITHUB_TOKEN> --labels labels.json YOUR-USERNAME/YOUR-REPO
  • Repeat for each repository, or use the batch script below.

🛠️ Batch Sync Script (Optional)

sync.sh

#!/bin/bash
TOKEN=ghp_xxxYOURTOKENxxx
ORG=NeaByteLab   # Change to NeaDigitra to sync another org

gh repo list $ORG --json name -L 100 | jq -r '.[].name' | while read repo; do
  echo "Syncing $ORG/$repo..."
  github-label-sync --access-token $TOKEN --labels labels.json $ORG/$repo
done

💡 Why use Nea-Label-Sync?

  • Consistency: Every contributor sees and uses the same, professional label set across all repos.
  • Branding: Instantly apply NeaByteLab/NeaDigitra style and workflow organization-wide.
  • Automation: No more manual label management!

Ready to use! Just clone, configure, and sync your organization’s repos for consistent workflow management.


📄 License

MIT License © 2025 NeaByteLab

About

Standardized GitHub labels and templates for NeaByteLab & NeaDigitra projects to ensure consistent issue tracking and workflow management.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages