{"id":23885145,"url":"https://github.com/duckduckstudio/github-labels-manager","last_synced_at":"2025-10-18T21:02:20.793Z","repository":{"id":245897121,"uuid":"819493366","full_name":"DuckDuckStudio/GitHub-Labels-Manager","owner":"DuckDuckStudio","description":"自动帮你复制仓库标签、获取仓库标签、清空已有标签的工具","archived":false,"fork":false,"pushed_at":"2025-03-22T01:54:25.000Z","size":121,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T00:01:11.141Z","etag":null,"topics":["devtools","github-labels","labels"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DuckDuckStudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-24T16:00:45.000Z","updated_at":"2025-03-22T01:53:08.000Z","dependencies_parsed_at":"2024-06-24T18:13:03.830Z","dependency_job_id":"427261ca-1c54-46c1-bb5b-b4bd9b0a3192","html_url":"https://github.com/DuckDuckStudio/GitHub-Labels-Manager","commit_stats":null,"previous_names":["duckduckstudio/github-labels-manager"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FGitHub-Labels-Manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FGitHub-Labels-Manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FGitHub-Labels-Manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DuckDuckStudio%2FGitHub-Labels-Manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DuckDuckStudio","download_url":"https://codeload.github.com/DuckDuckStudio/GitHub-Labels-Manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131330,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devtools","github-labels","labels"],"created_at":"2025-01-04T04:40:51.367Z","updated_at":"2025-10-18T21:02:20.701Z","avatar_url":"https://github.com/DuckDuckStudio.png","language":"Python","readme":"# GitHub Labels Manager (GLM)\n\n[![Build Release](https://github.com/DuckDuckStudio/GitHub-Labels-Manager/actions/workflows/build-release.yml/badge.svg)](https://github.com/DuckDuckStudio/GitHub-Labels-Manager/actions/workflows/build-release.yml)  \n\n*Enjoy your day and let automation do it for you. :)*  \n\n\u003cimg alt=\"Banner\" src=\"https://svg-banners.vercel.app/api?type=rainbow\u0026text1=GitHub%20Labels%20Manager\u0026width=800\u0026height=400\" style=\"text-align: center;\"\u003e\n\n[中文](https://github.com/DuckDuckStudio/GitHub-Labels-Manager/blob/main/README.md) | [English](https://github.com/DuckDuckStudio/GitHub-Labels-Manager/blob/main/other-languages/en-US/README.md)  \n\n## 项目简介\nGLM提供了以下几种功能:  \n- [x] 获取某个仓库的所有标签，并存在指定目录的`labels.json`中\n- [x] 清空某个仓库的标签 *(需要有repo权限的token)*\n- [x] 依据指定的 **json** 文件设置某个仓库的标签 *(先清空指定仓库的标签后再设置，需要有repo权限的token)*\n- [x] 复制某个仓库的标签到另一个仓库 *(先清空指定仓库的标签后再设置，需要有repo权限的token)*\n\n### 关于图标\n目前的图标仅作临时使用，后续如有正式设计将会替换。  \n[吐槽动态](https://www.bilibili.com/opus/949997717411594275)  \n\n\u003e [!TIP]\n\u003e 如果你想设计新图标可以将你的设计发至\u003cYzcbs123@163.com\u003e，感谢您对本项目的支持！  \n\n## 使用前配置\n### Python\n请确保你的设备上有Python环境。  \n运行以下命令检查Python版本：  \n\n```bash\npython --version\n```\n\n你可能会看到类似这样的输出：  \n\n```\nC:\\Users\\user_name\u003epython --version\nPython 3.12.0\n```\n\n#### 安装所需库\n`cd`到项目目录后运行如下命令:  \n```powershell\n# 创建虚拟环境\npython -m venv .venv\n# 激活虚拟环境\n\u0026 \".venv\\Scripts\\Activate.ps1\"\n\n# 安装所需库\npip install -r requirements.txt\n# TIP: 镜像源 -i https://pypi.tuna.tsinghua.edu.cn/simple\n```\n\n\u003e [!TIP]\n\u003e 使用winget获取的不需要弄。  \n\n### Token\n你需要一个GitHub Token才可以运行部分功能。  \n\n\u003e [!TIP]\n\u003e 官方文档 → [管理个人访问令牌 - GitHub 文档](https://docs.github.com/zh/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#%E5%88%9B%E5%BB%BA-personal-access-token-classic)  \n\n请按照以下步骤设置GitHub Token。  \n\n1. 登录 GitHub：  \n   打开 GitHub 并登录到您的账户。  \n\n2. 进入设置页面：  \n   点击右上角的个人头像，然后选择“**Settings**”（设置）。  \n\n3. 导航到Token设置：  \n   在左侧菜单中，点击“**Developer settings**”（开发者设置）。  \n   然后再在左侧菜单上，找到并点击展开“**Personal access tokens**”（个人账户Tokens）。  \n   选择“**Personal access tokens**”下的“**Tokens (classic)**”（Tokens（典型））。  \n\n4. 新建Token：  \n   在右上角展开“**Generate new token**”（生成新的Token）。  \n   选择“**Generate new token (classic)**”（生成新的Token（典型））。  \n\n5. 填写Token信息：  \n   按着表格填就好。  \n   Note → Token的名字，随便取，中文也行。  \n   Expiration → Token存在的时间，可以选“No expiration”（不会过期）。  \n   Select scopes → Token的作用域，这里需要选**repo**。  \n\n6. 生成Token：  \n   点击最下面的绿色按钮（“Generate token”（生成Token））生成Token。  \n\n7. 复制生成的Token：  \n   *请注意，在此之后你将无法再次获取这个Token，请妥善保管Token，不要上传到公共仓库中。*  \n\n8. 设置glm中的GitHub Token：  \n   运行`glm config --token \u003cYOUR-TOKEN\u003e`。\n\n\u003e [!TIP]\n\u003e 自1.6版本起，你可以使用`glm config --token remove`移除设置的Token。  \n\u003e 更新Token的命令和设置Token时的一样。  \n\n## 如何获取\n请[前往Releases页获取](https://github.com/DuckDuckStudio/GitHub-Labels-Manager/releases)  \n\n### 使用winget获取\n运行以下命令:  \n```powershell\nwinget install DuckStudio.GitHubLabelsManager\n```\n\n\u003e [!TIP]\n\u003e 设支持的版本号为n，则 $1.1 \\leqslant n \\leqslant 1.8$  \n\n## 如何使用\n运行以下命令以获取帮助:  \n```powershell\nglm --help # winget获取的/使用安装程序的\npython glm.py --help # python源码的\n```\n获取子命令的帮助:  \n```powershell\nglm \u003ccommand\u003e --help # winget获取的/使用安装程序的\npython glm.py \u003ccommand\u003e --help # python源码的\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckduckstudio%2Fgithub-labels-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduckduckstudio%2Fgithub-labels-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduckduckstudio%2Fgithub-labels-manager/lists"}