totallyquiche/github-label-importer

Import labels from one GitHub repo into another

v1.0.0 2022-02-10 23:16 UTC

This package is auto-updated.

Last update: 2024-04-11 03:43:12 UTC


README

Import labels from one GitHub repository into another.

Requirements

  • Composer
  • PHP ^8.1

Installation

composer require totallyquiche/github-label-importer

Usage

$importer = new Importer(
    github_access_token: '',
    user_or_organization_name: '',
    origin_repository_name: '',
    destination_repository_name: '',
    should_update_destination_label_colors: true,
    should_delete_destination_labels: false
);

$importer->import();

Configuration Options

Name Description Default Value
should_update_destination_label_colors Indicates whether or not the label color should be updated if the label already exists in the destination repository. true
should_delete_destination_labels Indicates whether all labels in the destination repository should be deleted before the import. false