{"id":16102389,"url":"https://github.com/sshaw/batchlabels","last_synced_at":"2025-09-19T10:18:33.132Z","repository":{"id":136717820,"uuid":"160154597","full_name":"sshaw/batchlabels","owner":"sshaw","description":"Add or remove labels in batches to/from GitHub issues and pull requests.","archived":false,"fork":false,"pushed_at":"2020-10-16T05:23:29.000Z","size":18,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T15:00:33.845Z","etag":null,"topics":["batch","github","golang","hacktoberfest","issues","labeling","pull-requests"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sshaw.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"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":"2018-12-03T08:06:35.000Z","updated_at":"2025-03-06T00:40:41.000Z","dependencies_parsed_at":"2023-07-03T09:00:35.876Z","dependency_job_id":null,"html_url":"https://github.com/sshaw/batchlabels","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/sshaw/batchlabels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fbatchlabels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fbatchlabels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fbatchlabels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fbatchlabels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshaw","download_url":"https://codeload.github.com/sshaw/batchlabels/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshaw%2Fbatchlabels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275918728,"owners_count":25552460,"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","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"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":["batch","github","golang","hacktoberfest","issues","labeling","pull-requests"],"created_at":"2024-10-09T18:53:43.000Z","updated_at":"2025-09-19T10:18:33.081Z","avatar_url":"https://github.com/sshaw.png","language":"Go","readme":"# Batch Labels\n\nAdd or remove labels in batches to/from GitHub issues and pull requests.\n\n## Installation\n\nDownload the binary for your platform:\n\n* [Linux x86-64](https://github.com/sshaw/batchlabels/releases/download/v0.1.0/batchlabels-linux-x86-64)\n* [Mac](https://github.com/sshaw/batchlabels/releases/download/v0.1.0/batchlabels-mac)\n* [Windows](https://github.com/sshaw/batchlabels/releases/download/v0.1.0/batchlabels.exe)\n\nOtherwise, [install Go](https://golang.org/dl/), and run `go get github.com/sshaw/batchlabels/...`\nand put `$GOPATH/bin` (assuming `GOPATH` has one path) in your `PATH`.\n\nAn [Auth token from GitHub](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) with repository access will need to be generated. To use, pass the token with the flag `-a` when using batchlables or store it in `BATCHLABELS_AUTH_TOKEN` environment variable.\n\n## Usage\n\n    batchlabels [hipv] [-a token] [--hacktoberfest] command label repo [repoN ...]\n    Add or remove labels in batches to/from GitHub issues and pull requests.\n\n    Options\n    -a --auth token    repository auth token, defaults to the BATCHLABELS_AUTH_TOKEN environment var\n    -h --help          print this message\n    --hacktoberfest    add \"hacktoberfest\" labels to the given IDs (see label below) or, if none are given,\n                       to all open issues (not pull requests) in the given repository\n    -i --issues        Only apply labels to issues and not pull requests\n    -p --pull-requests Only apply labels to pull requests\n    -v --version       print the version\n\n    command must be add or remove.\n\n    label can be one of: label, label#color, issue:label#color or issue1,issue2:labelA#color,labelB#color\n    When --hacktoberfest is provided and label is an integer or list of integers they are\n    treated as issue IDs for which the hacktoberfest label will be applied.\n\n    color is the hex color for the label.\n    If label contains no issues it will be added or removed to/from every open issue in the repo(s).\n\n    repo must be given in username/reponame format.\n\n## [Hacktoberfest](https://hacktoberfest.digitalocean.com/)\n\nUse the `--hacktoberfest` option to add an `hacktoberfest` label with the color `#ff9a56` to the specified issues\nor, if none are given, all open issues (not pull requests).\n\nThis works with both `add` and `delete` commands and can also be used in conjunction with normal label arguments.\nSee [Examples](#Examples).\n\n## Examples\n\nAdd the labels `foo` and `bar` to all open issues and pull requests in repository `sshaw/git-link`:\n\n    batchlabels add foo bar sshaw/git-link\n\nRemove the labels `foo` and `bar` from all open issues and pull requests in repository `sshaw/git-link`:\n\n    batchlabels remove foo bar sshaw/git-link\n\nAdd the labels `foo` and `bar` only to open issues in repository `sshaw/git-link`:\n\n    batchlabels -i add foo bar sshaw/git-link\n\nTo add labels having more than one word, use backslash `\\` to escape spaces. Example below will add `good first issue` to all open issues in the repository `sshaw/git-link:\n\n    batchlabels -i add good\\ first\\ issue sshaw/git-link\n\nAdd the label `foo` with the color `#de5833` only to open issues in repository `sshaw/git-link`:\n\n    batchlabels -i add foo#de5833 sshaw/git-link\n\nAdd the label `foo` with the color `#de5833` to issue `44` in repository `sshaw/git-link`:\n\n    batchlabels add 44:foo#de5833 sshaw/git-link\n\nAdd the label `foo` with color `#ccc` and label `bar` with color `#fff` to issues `12` and `27` in repository `sshaw/git-link`:\n\n    batchlabels add 12,27:foo#ccc,bar:#fff sshaw/git-link\n\nRemove the labels `foo` from issues `44` and `12` in repository `sshaw/git-link`:\n\n    batchlabels remove 12,44:foo sshaw/git-link\n\nAdd the `hacktoberfest` label with color `#ff9a56` to all open issues in repository `sshaw/git-link`:\n\n    batchlabels --hacktoberfest add sshaw/git-link\n\nAdd the `hacktoberfest` label with color `#ff9a56` to pull requests `44` and `12` in repository `sshaw/git-link`:\n\n    batchlabels --hacktoberfest add 44,12 sshaw/git-link\n\nAdd the `hacktoberfest` label with color `#ff9a56` to all open issues in repository `sshaw/git-link`.\nIn addition, add the label `foo` with the color `#de5833` to issue `44`\n\n    batchlabels --hacktoberfest add 44:foo#de5833 sshaw/git-link\n\n## See Also\n\n- [Export Pull Requests](https://github.com/sshaw/export-pull-requests) - Export pull requests and/or issues to a CSV file\n\n## TODO\n\nGitLab! (But first check to make sure they don't already support doing it.)\n\n## Author\n\nSkye Shaw [skye.shaw AT gmail.com]\n\n## License\n\nReleased under the MIT License: http://www.opensource.org/licenses/MIT\n\n---\n\nMade by [ScreenStaring](http://screenstaring.com)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshaw%2Fbatchlabels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshaw%2Fbatchlabels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshaw%2Fbatchlabels/lists"}