{"id":19353732,"url":"https://github.com/ohaiwalt/repo-gopher","last_synced_at":"2026-05-15T17:34:25.684Z","repository":{"id":86438906,"uuid":"101456404","full_name":"ohaiwalt/repo-gopher","owner":"ohaiwalt","description":"Manage GitHub issue labels, inspired by https://github.com/thommay/repo_man","archived":false,"fork":false,"pushed_at":"2017-09-03T16:48:53.000Z","size":2280,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T10:49:39.025Z","etag":null,"topics":["github-issues","repo-man","repository","repository-utilities"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ohaiwalt.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":"2017-08-26T02:17:49.000Z","updated_at":"2020-04-11T13:17:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2275d8b-a7d8-482b-887b-ff8987538b83","html_url":"https://github.com/ohaiwalt/repo-gopher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ohaiwalt/repo-gopher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohaiwalt%2Frepo-gopher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohaiwalt%2Frepo-gopher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohaiwalt%2Frepo-gopher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohaiwalt%2Frepo-gopher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohaiwalt","download_url":"https://codeload.github.com/ohaiwalt/repo-gopher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohaiwalt%2Frepo-gopher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33073367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["github-issues","repo-man","repository","repository-utilities"],"created_at":"2024-11-10T04:45:42.266Z","updated_at":"2026-05-15T17:34:25.678Z","avatar_url":"https://github.com/ohaiwalt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Repo Gopher\n============\n\n[![Build Status](https://travis-ci.org/ohaiwalt/repo-gopher.svg?branch=master)](https://travis-ci.org/ohaiwalt/repo-gopher)\n\nA utility for ensuring that a GitHub repository has the correct set of labels. The owner can create a toml file to configure a list of labels, and a list of mappings to rename older labels correctly.\n\nThis tool is shamelessly ~ripped off~ ported from https://github.com/thommay/repo_man so I didn't have to mess around with running Ruby locally. All credit to the author.\n\nConfiguration\n--------------\n\nGiven the following configuration file:\n\n```toml\nrepositories = [ \"example/fox\", \"example/wolf\" ]\n\n[[label]]\nname = \"bug\"\ncolor = \"f29513\"\nmappings = [ \"defect\", \"error\" ]\n\n[[label]]\nname = \"Jump In\"\ncolor = \"123456\"\n\n[[label]]\nname = \"An Old Label\"\ndelete = true\ncolor = \"123456\"\n\n```\n\nrepo-gopher would create two labels, `bug` and `Jump In`, and would ensure\nany existing issues labelled as `defect` or `error` were relabelled as\n`bug`.\n\nThe config file can either be specified from the command line, or will use `/etc/repo-gopher/config.toml` by default.\n\nSyntax\n------\n\nThe config file consists of two arrays, `repositories`, and `label`.\n\n`repositories` is an array of `organization`/`repository` names.\n\nA label may have the following keys: \n\n* `name` string, required\n* `color` string, required\n* `delete` bool\n\nThere is a special key, `mappings`, that accepts an array of existing labels that should be renamed to the current one. Renaming is done by applying the new label and then removing the old one, so it should be idempotent in the face of failed runs.\n\nRunning\n--------\n\nRepo Gopher expects you to have the environment variable `GITHUB_AUTH_TOKEN` set. To get a GitHub API token, go [here](https://github.com/settings/tokens).\n\n\nTo apply a config file to a repository, run\n```\nrepo-gopher -c config.toml\n```\n\nTo run using the provided Dockerfile, run\n```\ndocker run -v /local/path/to/config.toml:/etc/repo-gopher/config.toml -e GITHUB_AUTH_TOKEN=$GITHUB_AUTH_TOKEN ohaiwalt/repo-gopher\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohaiwalt%2Frepo-gopher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohaiwalt%2Frepo-gopher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohaiwalt%2Frepo-gopher/lists"}