Enjoy your day and let automation do it for you. :)
GLM provides the following functions:
- Gets all the labels for a repository, stored in
labels.json
of the specified directory - Empty the label of a repository (token with repo permission required)
- Set the label of a repository according to the specified json file (empty the specified repository's labels before setting, requires a token with repo permission)
- Copy the label of one repository to another repository (empty the specified repository's labels before setting, requires a token with repo permission)
The current icon is for temporary use only and will be replaced if there is a formal design.
Tip
If you would like to design a new icon, you can send your design to Yzcbs123@163.com. Thank you for supporting this project!
Make sure you have the Python environment on your device.
Run the following command to check the Python version:
python --version
You might see output like this:
C:\Users\user_name>python --version
Python 3.12.0
After cd into the project directory, run the following command:
# Create a virtual environment
python -m venv .venv
# Activate the virtual environment
.venv\Scripts\Activate.ps1
# Install required libraries
pip install -r requirements.txt
Tip
Programs obtained using winget do not need to set this.
You need a GitHub Token to run some of the features.
Tip
Official document → Managing your personal access tokens - GitHub Docs
Follow these steps to get a GitHub Token:
-
Sign in to GitHub:
Open GitHub and sign in to your account. -
Navigate to Settings:
Click on your profile icon in the top right corner, then select "Settings". -
Go to Token settings:
In the left sidebar, click on "Developer settings".
Then in the left sidebar again, locate and expand "Personal access tokens".
Select "Tokens (classic)" under "Personal access tokens". -
Generate a new Token:
Click on "Generate new token" in the upper right corner.
Choose "Generate new token (classic)". -
Fill in Token details:
Fill in the form as follows:
Note → Name your token.
Expiration → Choose "No expiration" if you want the token to never expire.
Select scopes → Select repo for the token's scope. -
Generate the Token:
Click the green button at the bottom ("Generate token"). -
Copy the generated Token:
Note: You won't be able to see this Token again, so make sure to store it securely and do not upload it to public repositories. -
Insert the Token into your configuration file:
Paste your Token into thetoken
field in theconfig.json
.
Or runglm config --token <YOUR-TOKEN>
Please go to the Releases page.
Run the following command:
winget install DuckStudio.GitHubLabelsManager
Tip
If the supported version number is n,
Run the following command for help:
glm --help # winget or packaged program
python glm.py --help # source code
Get help for subcommands:
glm <command> --help # winget or packaged program
python glm.py <command> --help # source code