Forrest logo
back to the github-label-sync tool

github-label-sync:tldr:d9f6d

github-label-sync: Synchronize labels using a specific labels JSON file.
$ github-label-sync --access-token ${token} --labels ${select} ${repository_name}
try on your machine

The command github-label-sync is a command-line tool used to synchronize labels between multiple GitHub repositories. It allows you to define a set of labels in one repository and copy or update those labels in another repository.

Here is a breakdown of the command:

  • --access-token ${token}: This flag specifies the access token to authenticate with GitHub API. ${token} should be replaced with an actual access token obtained from GitHub. The access token grants permission to access the repositories and perform label synchronization.

  • --labels ${select}: This flag defines the labels to include in the synchronization operation. ${select} should be replaced with a string specifying the labels you want to sync. For example, --labels "bug,enhancement" would include only the labels 'bug' and 'enhancement'.

  • ${repository_name}: This is a placeholder representing the name of the repository you want to synchronize labels with. You should replace it with the actual name of the repository.

In summary, this command is used to synchronize labels between repositories on GitHub using the github-label-sync tool, requiring an access token for authentication and specifying the labels to include in the synchronization operation.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the github-label-sync tool