{"id":16476437,"url":"https://github.com/hunter-thompson/github-operator","last_synced_at":"2026-05-13T12:50:50.315Z","repository":{"id":163202723,"uuid":"638615146","full_name":"Hunter-Thompson/github-operator","owner":"Hunter-Thompson","description":"An operator to manage policy-as-code and apply repository settings to repositories across an organization.","archived":false,"fork":false,"pushed_at":"2023-11-23T08:10:05.000Z","size":8106,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T23:38:20.737Z","etag":null,"topics":["github","github-settings","kubernetes-operator"],"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/Hunter-Thompson.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-05-09T18:19:09.000Z","updated_at":"2024-01-10T10:18:15.000Z","dependencies_parsed_at":"2023-11-23T09:34:33.701Z","dependency_job_id":null,"html_url":"https://github.com/Hunter-Thompson/github-operator","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/Hunter-Thompson/github-operator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hunter-Thompson%2Fgithub-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hunter-Thompson%2Fgithub-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hunter-Thompson%2Fgithub-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hunter-Thompson%2Fgithub-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hunter-Thompson","download_url":"https://codeload.github.com/Hunter-Thompson/github-operator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hunter-Thompson%2Fgithub-operator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32983701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T11:31:52.688Z","status":"ssl_error","status_checked_at":"2026-05-13T11:31:52.072Z","response_time":115,"last_error":"SSL_read: 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","github-settings","kubernetes-operator"],"created_at":"2024-10-11T12:42:35.075Z","updated_at":"2026-05-13T12:50:50.293Z","avatar_url":"https://github.com/Hunter-Thompson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-operator\nAn operator to manage policy-as-code and apply repository settings to repositories across an organization.\n\n## Guide\n\n### Deployment\n\n1. Create GitHub Token with access to `repo`, `write:org`, and `read:org`\n2. Deploy on Kubernetes cluster:\n\n```sh\ngit clone github.com/Hunter-Thompson/github-operator\ncd github-operator\nkubectl create secret generic github-operator-secret --from-literal GITHUB_TOKEN=ghp_sjdnfksdfnjksdf \nkubectl apply -f docs/install.yaml\n```\n\n### Team\n\n```yaml\n# https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#create-a-team\n# https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#update-a-team\n\napiVersion: settings.github.com/v1beta1\nkind: Team\nmetadata:\n  name: team-sample\nspec:\n  organization: ocktokit\n  description: 'asd'\n  maintainers:\n  - Hunter-Thompson\n  repoNames:\n  - repo1\n  - anotherrepo\n  privacy: secret\n  parentTeamId: 1829\n```\n\n### Repository\n\n```yaml\n# https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#create-an-organization-repository\n# https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#update-a-repository\n\napiVersion: settings.github.com/v1beta1\nkind: Repository\nmetadata:\n  name: repo-sample\nspec:\n  organization: ocktokit\n  description: \"asd\"\n  homepage: \"https://home.page\"\n  topics:\n  - topic1\n  - topic2\n  private: false\n  hasIssues: false\n  hasPages: false\n  hasWiki: false\n  defaultBranch: master\n  allowSquashMerge: true\n  allowMergeCommit: true\n  allowRebaseMerge: true\n  allowAutoMerge: true\n  deleteBranchOnMerge: true\n  isTemplate: false\n  squashMergeCommitTitle: \"PR_TITLE\"\n  squashMergeCommitMessage: \"COMMIT_MESSAGES\"\n  mergeCommitTitle: \"PR_TITLE\"\n  mergeCommitMessage: \"PR_BODY\"\n  repositoryCollaborators:\n    adminPermission:\n    - Hunter-Thompson1\n    pushPermission:\n    - Hunter-Thompson2\n    pullPermission:\n    - Hunter-Thompson3\n```\n\n## License\n\nCopyright 2023.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-thompson%2Fgithub-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunter-thompson%2Fgithub-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunter-thompson%2Fgithub-operator/lists"}