{"id":17148778,"url":"https://github.com/trustmaster/gh-label-replace","last_synced_at":"2025-03-24T11:41:03.323Z","repository":{"id":187320128,"uuid":"676642865","full_name":"trustmaster/gh-label-replace","owner":"trustmaster","description":"Find \u0026 replace labels in GitHub Pull Requests","archived":false,"fork":false,"pushed_at":"2023-08-09T20:37:27.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T16:44:08.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trustmaster.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}},"created_at":"2023-08-09T17:04:08.000Z","updated_at":"2023-08-10T15:18:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae06a342-e5de-4780-9985-06c3cf9ff6c1","html_url":"https://github.com/trustmaster/gh-label-replace","commit_stats":null,"previous_names":["trustmaster/gh-labels-replace"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fgh-label-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fgh-label-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fgh-label-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trustmaster%2Fgh-label-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trustmaster","download_url":"https://codeload.github.com/trustmaster/gh-label-replace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245265862,"owners_count":20587407,"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":[],"created_at":"2024-10-14T21:29:49.792Z","updated_at":"2025-03-24T11:41:03.303Z","avatar_url":"https://github.com/trustmaster.png","language":"Python","readme":"# GitHub labels replace tool\n\nFind \u0026 replace labels in GitHub issues and pull requests\n\n## Configure GitHub token\n\nThis tool requires a GitHub token to be set in `GH_TOKEN` environment variable. You can generate a token in your GitHub account settings:\n\n1. Go to [Github settings -\u003e Developer settings](https://github.com/settings/apps)\n2. Click [Personal access tokens -\u003e Tokens (classic)](https://github.com/settings/tokens)\n3. Click \"Generate new token\"\n4. Create a token with `repo` permissions (or `public_repo` if you're only going to use it with public repositories)\n5. Copy the token and set it in `GH_TOKEN` environment variable, or pass it as a command line parameter (see example below)\n\n## Usage\n\n```bash\n$ python3 gh-label-replace.py [params] \u003cowner\u003e \u003crepo\u003e \u003cold_labels\u003e \u003cnew_labels\u003e\n```\n\nParameters:\n- `-s` `--start-date` - start date in YYYY-MM-DD format\n- `-o` `--overwrite` - overwrite all existing labels completely\n- `-d` `--dry-run` - do not actually change anything, just print what would be done\n- `owner` - GitHub repository owner/organization\n- `repo` - GitHub repository name\n- `old_labels` - comma-separated list of old labels\n- `new_labels` - comma-separated list of new labels\n\nExample:\n\n```bash\n$ GH_TOKEN='exampleToken' python3 gh-label-replace.py --start-date=2020-01-01 trustmaster gh-labels-replace \"bug,enhancement\" \"bug,feature\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustmaster%2Fgh-label-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrustmaster%2Fgh-label-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrustmaster%2Fgh-label-replace/lists"}