{"id":15681321,"url":"https://github.com/displague/github-labeller","last_synced_at":"2025-05-07T12:12:38.384Z","repository":{"id":57569170,"uuid":"284141858","full_name":"displague/github-labeller","owner":"displague","description":"Label all of your repositories within an organization with labels defined in labels.json","archived":false,"fork":false,"pushed_at":"2020-08-26T13:54:09.000Z","size":9,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T12:12:32.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/displague.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}},"created_at":"2020-07-31T22:35:17.000Z","updated_at":"2024-03-12T10:17:24.000Z","dependencies_parsed_at":"2022-08-23T17:31:30.506Z","dependency_job_id":null,"html_url":"https://github.com/displague/github-labeller","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/displague%2Fgithub-labeller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/displague%2Fgithub-labeller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/displague%2Fgithub-labeller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/displague%2Fgithub-labeller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/displague","download_url":"https://codeload.github.com/displague/github-labeller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873894,"owners_count":21817715,"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-03T16:52:47.377Z","updated_at":"2025-05-07T12:12:38.365Z","avatar_url":"https://github.com/displague.png","language":"Go","readme":"# GitHub Repo Labeller\n\nLabel all of your repositories within an organization with labels defined in\n`labels.json` from the current directory.\n\nThis is a small tool to consistently label **all** repositories in a Github org\nwith the specified labels.  This takes advantage of the [go-github\nlibrary](https://github.com/google/go-github).\n\nWhile [Github labels can be set at the organization\nlevel](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/managing-default-labels-for-repositories-in-your-organization),\nexisting repositories are not updated to reflect those labels.\n\n## Install\n\n```sh\nGO111MODULE=off go get github.com/displague/github-labeller\n```\n\n## Usage\n\n**First**, make sure `labels.json` exists and has all of the labels you want to\nadd to your repositories.\n\nIf `repos` is not present in the file, the labels provided will be added to all\nrepositories in the organization.\n\n```json\n{\n  \"repos\": [\"foo\", \"bar\"],\n  \"labels\": [{\"name\":\"labelA\", \"color\": \"b0b0b0\", \"description\": \"Label A\"}]\n}\n```\n\n\nThen run `github-labeller` with a `GITHUB_TOKEN` set in the environment:\n\n```console\nGITHUB_TOKEN=... github-labeller ORG\n```\n\n## TODO\n\n* [ ] Add the labels to the Org (if permitted)?\n* [ ] Update existing labels?\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdisplague%2Fgithub-labeller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdisplague%2Fgithub-labeller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdisplague%2Fgithub-labeller/lists"}