Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-label-cloner

Python script to clone GitHub Issue Labels from one repository to another.

GitHub Labels are really useful for organising issues and pull requests, especially when you use them with GitHub Projects.

Example run of github-label-cloner

Features

  • Copies all labels from one repo to another
  • Removes existing labels in target repo by default
  • Supports --keep-existing flag to preserve existing labels
  • Small benefit in the form of asynchronous operations

Requirements

Install dependencies:

pip install -r requirements.txt

Usage

python copy_labels.py \
  --token YOUR_GITHUB_TOKEN \
  --source username/repo-from \
  --target username/repo-to

To preserve existing labels in the target repo, use the --keep-existing flag:

python copy_labels.py \
  --token YOUR_GITHUB_TOKEN \
  --source username/repo-from \
  --target username/repo-to \
  --keep-existing

You can also provide environment variables instead of flags:

  • GITHUB_TOKEN
  • SOURCE_REPO
  • TARGET_REPO

About

Script for cloning GitHub issue labels between repositories

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages