{"id":22982238,"url":"https://github.com/osism/github-manager","last_synced_at":"2025-08-13T17:34:41.846Z","repository":{"id":37091636,"uuid":"378896841","full_name":"osism/github-manager","owner":"osism","description":"GitHub repository management through Ansible \u0026 Python","archived":false,"fork":false,"pushed_at":"2024-03-20T15:38:56.000Z","size":225,"stargazers_count":5,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-03-20T16:56:04.283Z","etag":null,"topics":["ansible","github","python"],"latest_commit_sha":null,"homepage":"https://www.osism.tech","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/osism.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}},"created_at":"2021-06-21T10:45:33.000Z","updated_at":"2023-08-02T07:11:46.000Z","dependencies_parsed_at":"2023-02-09T12:16:42.992Z","dependency_job_id":"994f8699-3914-4bf7-9d0a-ee0733b0f148","html_url":"https://github.com/osism/github-manager","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/osism%2Fgithub-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osism%2Fgithub-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osism%2Fgithub-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osism%2Fgithub-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osism","download_url":"https://codeload.github.com/osism/github-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229773526,"owners_count":18122035,"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":["ansible","github","python"],"created_at":"2024-12-15T02:17:05.473Z","updated_at":"2024-12-15T02:17:05.988Z","avatar_url":"https://github.com/osism.png","language":"Python","readme":"# GitHub repository management through Ansible \u0026 Python\n\nThis repository manages the GitHub repositories for the OSISM organization.\n\n## Installation\n\n```sh\npipenv install\npipenv shell\nansible-galaxy collection install ansible-collection-gitcontrol\n```\n\n## Prerequisite\n\nA fine-grained personal access token (https://github.com/settings/tokens?type=beta)\nmust be created with the following permissions:\n\n* Organization permissions: Read and Write access to custom repository roles,\n  members, organization administration, organization announcement banners, and\n  organization projects\n* Repository permissions: Read access to metadata, Read and Write access to\n  administration, code, and issues\n\n## Usage\n\n```sh\nexport GITHUB_TOKEN=\"\u003cgithub-token\u003e\"\nansible-playbook -i localhost, playbook.yaml\n```\n\nSet ``-e log=true`` to enable logging output.\n\n## Limitiations\n\n* It is not possible to add already created, but still empty, repositories here.\n  Before this is possible, at least one commit must have been made on the main\n  branch.\n* Only the owner of the organization should currently merge pull requests. The\n  token in the github action would not work if someone else triggers it.\n\n## Github Actions\n\nFor the Github Action workflows a repository secret ``GHP`` is provided. This had\nonly a short validity and must be renewed regularly.\n\nIf the following error in the logs comes from ``Manage github repositories`` the\ntoken has expired and must be renewed OR someone different than the owner merged\na pull request.\n\n```\nPLAY [localhost] ***************************************************************\n\nTASK [Gathering Facts] *********************************************************\nok: [localhost]\n\nTASK [manage repositories] *****************************************************\nfatal: [localhost]: FAILED! =\u003e {\"censored\": \"the output has been hidden due to the fact that 'no_log: true' was specified for this result\", \"changed\": false}\n\nPLAY RECAP *********************************************************************\nlocalhost                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosism%2Fgithub-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosism%2Fgithub-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosism%2Fgithub-manager/lists"}