Feature Request
Is your feature request related to a problem?
Issue labels across Oss-Dev projects are inconsistent: some repos use bug, others use Bug or bug-fix, making cross-repo filtering unreliable and confusing for contributors looking for specific issue types.
Describe the solution you'd like
Define a canonical label schema and provide a script that applies it uniformly across all managed repositories via the GitHub API:
STANDARD_LABELS = [
{"name": "bug", "color": "d73a4a", "description": "Something is not working"},
{"name": "enhancement", "color": "a2eeef", "description": "New feature or request"},
{"name": "good first issue", "color": "7057ff", "description": "Good for newcomers"},
{"name": "help wanted", "color": "008672", "description": "Extra attention is needed"},
{"name": "documentation", "color": "0075ca", "description": "Improvements to docs"},
{"name": "level:intermediate", "color": "e4e669", "description": "35 pts"},
{"name": "level:advanced", "color": "d93f0b", "description": "55 pts"},
]
def sync_labels(repo: str, token: str):
headers = {"Authorization": f"Bearer {token}"}
for label in STANDARD_LABELS:
requests.post(f"https://api.github.com/repos/{repo}/labels", json=label, headers=headers)
Store the schema in a labels.json config file so it can be updated and re-synced easily.
Describe alternatives you've considered
- Manual label creation per repo (does not scale, reverts to inconsistency)
- GitHub label sync GitHub Action (good option but benefit of in-project script for full control)
Additional context
Level 2 feature. The script should handle existing conflicting labels (update color/description rather than creating duplicates). Include a dry-run mode.
Feature Request
Is your feature request related to a problem?
Issue labels across Oss-Dev projects are inconsistent: some repos use
bug, others useBugorbug-fix, making cross-repo filtering unreliable and confusing for contributors looking for specific issue types.Describe the solution you'd like
Define a canonical label schema and provide a script that applies it uniformly across all managed repositories via the GitHub API:
Store the schema in a
labels.jsonconfig file so it can be updated and re-synced easily.Describe alternatives you've considered
Additional context
Level 2 feature. The script should handle existing conflicting labels (update color/description rather than creating duplicates). Include a dry-run mode.