Skip to content

Paraphory/GitHub-Labels-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

Labels Manager is a tool to manage GitHub labels. It can be used to create, update, delete, and sync labels across multiple repositories.

Requirements

Note
You need installed GitHub CLI to use this tool. You can download it from here.
Make sure you have CLI configured with your GitHub account. You can configure it by running gh auth login command.

Use

Run this to generate the default templates:

py main.py --generate-default-templates

which will save the templates to templates/ folder.

Apply Template

Run this to apply the template to a repository:

py main.py --apply-template labels.json --target <owner/repo>

If only owner is provided, it will apply the template to all the repositories under the owner.

labels.json in this command is the template file. You can also set to other file, but make sure the file is in the templates/ folder. When this argument is not provided, it will use the default template (templates/labels.json).

Pattern: --apply-template [<template>] --target <owner/repo>

  • <template>: The template file name. When ignored use default: labels.json
  • <owner/repo>: The target repository. When <repo> ignored, it will apply to all the repositories under the owner.
    • example: Paraphory/GitHub-Labels-Manager -> Apply only to Paraphory/GitHub-Labels-Manager repo.
    • example: Paraphory/ -> Apply to all the repositories under Paraphory owner.
    • example: Paraphory -> Apply to all the repositories under Paraphory owner.