labelsync

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command labelsync creates or updates every label of .github/labels.yml on GitHub with `gh label create --color <c> --description <d> --force -- <name>` (Story 4.14). It never deletes a label. The file is validated first (tools/internal/labels); a problem stops the sync before any call.

The repository is gh's default: $GH_REPO, else the git remote of the current directory. $LABELSYNC_GH overrides the gh binary (tests).

Usage: go run ./tools/labelsync [-dry-run] [-file .github/labels.yml]

Exit codes: 0 synced (or printed with -dry-run), 1 the file is invalid or a gh call failed, 2 usage error or the file cannot be read.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL