Skip to content

robert-claypool/gabel

Repository files navigation

Gabel

Safely copy GitHub labels between repositories. Review everything before making changes - you're always in control.

Install

Clone and build with Go:

git clone https://github.com/robert-claypool/gabel.git
cd gabel
go build -o gabel
mv gabel /usr/local/bin/

Usage

gabel -h # show help
gabel owner/source owner/dest

This opens an interactive picker showing all labels from both repos (source and destination). Use arrow keys to navigate, Space to toggle, Enter to confirm selections.

Current state → Desired state for myorg/myproject:

  [✓] NeedsFix            #aa0000  (dest only)
  ────────────────────────────────────────────────
  [✓] bug                 #d73a4a
  [✓] documentation       #0075ca
  [ ] duplicate           #cfd3d7
  [✓] enhancement         #a2eeef

  Space: toggle  ↑/↓: navigate  Enter: confirm  q: quit

Requirements

GitHub CLI is required. Gabel uses the GitHub CLI to interact with GitHub.

  1. Install GitHub CLI
  2. Run gh auth login to authenticate
  3. Ensure you have permission to manage labels in the destination repository

Options

  • -v, --verbose - Show label descriptions
  • -d, --debug - Show debug logs
  • -h, --help - Show help

License

MIT

About

Copy and paste [G]itHub L[abel]s from one repo to another. Uses your GitHub CLI.

Resources

License

Stars

Watchers

Forks

Packages

No packages published