{"id":37043643,"url":"https://github.com/mobileact/githublabelsetupper","last_synced_at":"2026-01-14T05:01:12.129Z","repository":{"id":69262637,"uuid":"202088952","full_name":"MobileAct/GithubLabelSetUpper","owner":"MobileAct","description":"GitHub/Gitea Label tool for template","archived":false,"fork":false,"pushed_at":"2019-10-29T03:52:58.000Z","size":79,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-12T23:51:26.732Z","etag":null,"topics":["dotnet-cli","dotnet-tool","gitea","gitea-labels","github-labels"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MobileAct.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-13T07:28:26.000Z","updated_at":"2019-10-24T05:39:16.000Z","dependencies_parsed_at":"2023-04-17T12:28:13.824Z","dependency_job_id":null,"html_url":"https://github.com/MobileAct/GithubLabelSetUpper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/MobileAct/GithubLabelSetUpper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileAct%2FGithubLabelSetUpper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileAct%2FGithubLabelSetUpper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileAct%2FGithubLabelSetUpper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileAct%2FGithubLabelSetUpper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MobileAct","download_url":"https://codeload.github.com/MobileAct/GithubLabelSetUpper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MobileAct%2FGithubLabelSetUpper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28410078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dotnet-cli","dotnet-tool","gitea","gitea-labels","github-labels"],"created_at":"2026-01-14T05:01:10.716Z","updated_at":"2026-01-14T05:01:12.118Z","avatar_url":"https://github.com/MobileAct.png","language":"C#","readme":"# GithubLabelSetUpper\n[![Build Status](https://dev.azure.com/MobileAct/GithubLabelSetUpper/_apis/build/status/MobileAct.GithubLabelSetUpper?branchName=master)](https://dev.azure.com/MobileAct/GithubLabelSetUpper/_build/latest?definitionId=4\u0026branchName=master) [![NuGet version](https://badge.fury.io/nu/MobileAct.GithubLabelSetUpper.svg)](https://badge.fury.io/nu/MobileAct.GithubLabelSetUpper)  \nThis tool is motivated by [Financial-Times/github-label-sync](https://github.com/Financial-Times/github-label-sync)\n\nThis tool package is different for each provider:\n- [GitHub](https://github.com/)\n- [Gitea](https://gitea.io/en-us/)\n- [GitLab](https://about.gitlab.com/)\n\nTable Content\n- [GitHub](#github)\n- [Gitea](#gitea)\n- [GitLab](#gitlab)\n- [License](#license)\n- [Other](#other)\n\n# GitHub\n## Usage\n1. Install .NET Core 2.2 or higher.\n1. Install [this package](https://www.nuget.org/packages/MobileAct.GithubLabelSetUpper).\n\nInstalled `hublabel` command.\n\n### Environment Variables\n- `GITHUB_HOST`: using environment variable instead of argument `--host`\n- `GITHUB_TOKEN`: using environment variable instead of argument `-t|--token`\n\n### Commands\n\n#### List labels\n\n```\nList the all labels\n\nUsage: hublabel list [options]\n\nOptions:\n  -h|--help        Show help information\n  --host           Host of Github instance, default value is https://github.com\n  -t|--token       Token of Github\n  -r|--repository  Target repository, value format: {Owner}/{RepositoryName}\n  -o|--output      Output file name, including file extension\n```\n\nLook up current repository labels and output file.\n\nYou can [response file parsing](https://natemcmaster.github.io/CommandLineUtils/docs/response-file-parsing.html?tabs=using-attributes). Make file `list.txt`, example:\n```\nlist\n--host\nhttps://github.com\n-t\nYOUR_GITHUB_TOKEN\n-r\nREPOSITORY_OWNER/REPOSITORY_NAME\n-o\noutput.yml\n```\nExecute command: `hublabel @list.txt`\n\n#### SetUp Labels\n\n```\nSetup Github labels by option value\n\nUsage: hublabel setup [options]\n\nOptions:\n  -h|--help        Show help information\n  --host           Host of Github instance, default value is https://github.com\n  -t|--token       Token of Github\n  -r|--repository  Target repository, value format: {Owner}/{RepositoryName}\n  -l|--label       The labels configuration file, support json or yml file.\n  -d|--dry-run     Calculate the required label changes, but do not apply Github\n```\n\nLook up current repository labels and output file.\n\nYou can [response file parsing](https://natemcmaster.github.io/CommandLineUtils/docs/response-file-parsing.html?tabs=using-attributes). Make file `setup.txt`, example:\n```\nsetup\n--host\nhttps://github.com\n-t\nYOUR_GITHUB_TOKEN\n-r\nREPOSITORY_OWNER/REPOSITORY_NAME\n-l\nLABEL_FILE\n```\nExecute command: `hublabel @setup.txt`\n\n### Label file\nSupport file type: JSON or YAML\n\nexample of yaml:\n\n```yml\n- name: 不具合\n  color: d73a4a\n  description: Something isn't working\n  aliases:\n    - bug\n- name: 機能\n  color: a2eeef\n  description: New feature\n  aliases:\n    - enhancement\n- name: Feature Request\n  color: 7057ff\n  description: New feature request\n```\n\nThe `name` and `color` property is required. `color` property value is color code without `#`.\n\nThe `description` property is optional.\n\nThe `aliases` property is optional. If this property was set, its label will change to `name` from alias name. So it mean label is kept.\n\n## License\nThis tool is using libraries:\n\n- [Utf8Json](https://github.com/neuecc/Utf8Json) is published by [MIT License](https://github.com/neuecc/Utf8Json/blob/master/LICENSE)\n- [YamlDotNet](https://github.com/aaubry/YamlDotNet) is published by [MIT License](https://github.com/aaubry/YamlDotNet/blob/master/LICENSE)\n- [Octokit](https://github.com/octokit/octokit.net) is published by [MIT License](https://github.com/octokit/octokit.net/blob/master/LICENSE.txt)\n- [CommandLineUtils](https://github.com/natemcmaster/CommandLineUtils) is published by [Apache License v2.0](https://github.com/natemcmaster/CommandLineUtils/blob/master/LICENSE.txt)\n\n# Gitea\n## Usage\n1. Install .NET Core 2.2 or higher.\n1. Install [this package](https://www.nuget.org/packages/MobileAct.GiteaLabelSetUpper).\n\nInstalled `tealabel` command.\n\n### Environment Variables\n- `GITTEA_HOST`: using environment variable instead of argument `--host`\n- `GITTEA_TOKEN`: using environment variable instead of argument `-t|--token`\n\n### Commands\n\n#### List labels\n\n```\nList the all labels\n\nUsage: tealabel list [options]\n\nOptions:\n  -h|--help        Show help information\n  --host           Host of Gitea instance, default value is https://try.gitea.io\n  -t|--token       Token of Gitea\n  -r|--repository  Target repository, value format: {Owner}/{RepositoryName}\n  -o|--output      Output file name, including file extension\n```\n\nLook up current repository labels and output file.\n\nYou can [response file parsing](https://natemcmaster.github.io/CommandLineUtils/docs/response-file-parsing.html?tabs=using-attributes). Make file `list.txt`, example:\n```\nlist\n--host\nhttps://try.gitea.io\n-t\nYOUR_GITEA_TOKEN\n-r\nREPOSITORY_OWNER/REPOSITORY_NAME\n-o\noutput.yml\n```\nExecute command: `tealabel @list.txt`\n\n#### SetUp Labels\n\n```\nSetup Gitea labels by option value\n\nUsage: tealabel setup [options]\n\nOptions:\n  -h|--help        Show help information\n  --host           Host of Gitea instance, default value is https://try.gitea.io\n  -t|--token       Token of Gitea\n  -r|--repository  Target repository, value format: {Owner}/{RepositoryName}\n  -l|--label       The labels configuration file, support json or yml file.\n  -d|--dry-run     Calculate the required label changes, but do not apply Gitea\n```\n\nLook up current repository labels and output file.\n\nYou can [response file parsing](https://natemcmaster.github.io/CommandLineUtils/docs/response-file-parsing.html?tabs=using-attributes). Make file `setup.txt`, example:\n```\nsetup\n--host\nhttps://try.gitea.io\n-t\nYOUR_GITEA_TOKEN\n-r\nREPOSITORY_OWNER/REPOSITORY_NAME\n-l\nLABEL_FILE\n```\nExecute command: `tealabel @setup.txt`\n\n### Label file\nAlmost the same of GitHub label file.  \nSupport file type: JSON or YAML\n\nexample of yaml:\n\n```yml\n- id: 111\n  name: 不具合\n  color: d73a4a\n  description: Something isn't working\n  aliases:\n    - bug\n- id: 123\n  name: 機能\n  color: a2eeef\n  description: New feature\n  aliases:\n    - enhancement\n- name: Feature Request\n  color: 7057ff\n  description: New feature request\n```\n\nThe `id` is optional and provided by Gitea. Recomend that do not set `id`.\n\nThe `name` and `color` property is required. `color` property value is color code without `#`.\n\nThe `description` property is optional.\n\nThe `aliases` property is optional. If this property was set, its label will change to `name` from alias name. So it mean label is kept.\n\n## License\nThis tool is using libraries:\n\n- [Utf8Json](https://github.com/neuecc/Utf8Json) is published by [MIT License](https://github.com/neuecc/Utf8Json/blob/master/LICENSE)\n- [YamlDotNet](https://github.com/aaubry/YamlDotNet) is published by [MIT License](https://github.com/aaubry/YamlDotNet/blob/master/LICENSE)\n- [CommandLineUtils](https://github.com/natemcmaster/CommandLineUtils) is published by [Apache License v2.0](https://github.com/natemcmaster/CommandLineUtils/blob/master/LICENSE.txt)\n\n# GitLab\n**ToDo: Write test code**\n## Usage\n1. Install .NET Core 2.2 or higher.\n1. Install [this package](https://www.nuget.org/packages/MobileAct.GitlabLabelSetUpper).\n\nInstalled `lablabel` command.\n\n### Environment Variables\n- `GITLAB_HOST`: using environment variable instead of argument `--host`\n- `GITLAB_TOKEN`: using environment variable instead of argument `-t|--token`\n\n### Commands\n\n#### List labels\n\n```\nList the all labels\n\nUsage: lablabel list [options]\n\nOptions:\n  -h|--help        Show help information\n  --host           Host of GitLab instance, default value is https://gitlab.com\n  -t|--token       Token of GitLab\n  -r|--repository  Target repository, value format: {Owner}/{RepositoryName}\n  -o|--output      Output file name, including file extension\n```\n\nLook up current repository labels and output file.\n\nYou can [response file parsing](https://natemcmaster.github.io/CommandLineUtils/docs/response-file-parsing.html?tabs=using-attributes). Make file `list.txt`, example:\n```\nlist\n--host\nhttps://gitlab.com\n-t\nYOUR_GITEA_TOKEN\n-r\nREPOSITORY_OWNER/REPOSITORY_NAME\n-o\noutput.yml\n```\nExecute command: `lablabel @list.txt`\n\n#### SetUp Labels\n\n```\nSetup GitLab labels by option value\n\nUsage: lablabel setup [options]\n\nOptions:\n  -h|--help        Show help information\n  --host           Host of GitLab instance, default value is https://gitlab.com\n  -t|--token       Token of GitLab\n  -r|--repository  Target repository, value format: {Owner}/{RepositoryName}\n  -l|--label       The labels configuration file, support json or yml file.\n  -d|--dry-run     Calculate the required label changes, but do not apply GitLab\n```\n\nLook up current repository labels and output file.\n\nYou can [response file parsing](https://natemcmaster.github.io/CommandLineUtils/docs/response-file-parsing.html?tabs=using-attributes). Make file `setup.txt`, example:\n```\nsetup\n--host\nhttps://gitlab.com\n-t\nYOUR_GITEA_TOKEN\n-r\nREPOSITORY_OWNER/REPOSITORY_NAME\n-l\nLABEL_FILE\n```\nExecute command: `lablabel @setup.txt`\n\n### Label file\nAlmost the same of GitHub label file.  \nSupport file type: JSON or YAML\n\nexample of yaml:\n\n```yml\n- id: 111\n  name: 不具合\n  color: d73a4a\n  description: Something isn't working\n  priority: 2\n  aliases:\n    - bug\n- id: 123\n  name: 機能\n  color: a2eeef\n  description: New feature\n  aliases:\n    - enhancement\n- name: Feature Request\n  color: 7057ff\n  description: New feature request\n```\n\nThe `id` is optional and provided by Gitea. Recomend that do not set `id`.\n\nThe `name` and `color` property is required. `color` property value is color code without `#`.\n\nThe `description` property is optional.\n\nThe `priority` property is optional, it is integer.\n\nThe `aliases` property is optional. If this property was set, its label will change to `name` from alias name. So it mean label is kept.\n\n## License\nThis tool is using libraries:\n\n- [Utf8Json](https://github.com/neuecc/Utf8Json) is published by [MIT License](https://github.com/neuecc/Utf8Json/blob/master/LICENSE)\n- [YamlDotNet](https://github.com/aaubry/YamlDotNet) is published by [MIT License](https://github.com/aaubry/YamlDotNet/blob/master/LICENSE)\n- [CommandLineUtils](https://github.com/natemcmaster/CommandLineUtils) is published by [Apache License v2.0](https://github.com/natemcmaster/CommandLineUtils/blob/master/LICENSE.txt)\n- [GitLabApiClient](https://github.com/nmklotas/GitLabApiClient) is published by [MIT License](https://github.com/nmklotas/GitLabApiClient/blob/master/LICENSE)\n\n# License\nThis tools is under MIT License\n\n# Other\n\n## Contribute\nToDo: Write\n\n### Development Environment\n- C# 8.0\n- Visual Studio 2019\n\n## Other\nAuthor: [@MeilCli](https://github.com/MeilCli)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobileact%2Fgithublabelsetupper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobileact%2Fgithublabelsetupper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobileact%2Fgithublabelsetupper/lists"}