{"id":24894784,"url":"https://github.com/lsst-dm/codekit","last_synced_at":"2025-10-16T10:30:37.411Z","repository":{"id":22014051,"uuid":"25339766","full_name":"lsst-dm/codekit","owner":"lsst-dm","description":"LSST DM misc. code management tools","archived":false,"fork":false,"pushed_at":"2024-11-19T22:53:40.000Z","size":386,"stargazers_count":0,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-30T03:02:48.851Z","etag":null,"topics":["ci","eups","github","jenkins","release"],"latest_commit_sha":null,"homepage":"","language":"Python","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/lsst-dm.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":"2014-10-17T05:16:18.000Z","updated_at":"2024-11-19T22:53:44.000Z","dependencies_parsed_at":"2024-12-06T09:14:42.103Z","dependency_job_id":"f0f43c28-bc68-4d35-a052-1e29c9bd5fd9","html_url":"https://github.com/lsst-dm/codekit","commit_stats":null,"previous_names":["lsst-sqre/sqre-codekit","lsst-dm/codekit","lsst-dm/sqre-codekit"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst-dm%2Fcodekit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst-dm%2Fcodekit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst-dm%2Fcodekit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsst-dm%2Fcodekit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsst-dm","download_url":"https://codeload.github.com/lsst-dm/codekit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236706752,"owners_count":19192045,"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":["ci","eups","github","jenkins","release"],"created_at":"2025-02-01T19:14:33.493Z","updated_at":"2025-10-16T10:30:32.094Z","avatar_url":"https://github.com/lsst-dm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqre-codekit\n\nLSST DM SQuaRE misc. code management tools\n\n## Installation\n\nsqre-codekit runs on Python 3.6 or newer. You can install it with\n\n```bash\npip install sqre-codekit\n```\n\n## Available commands\n\n- `github-auth`: Generate a GitHub authentication token.\n- `github-decimate-org`: Delete repos and/or teams from a GitHub organization.\n- `github-fork-org`: Fork repositories from one GitHub organization to another.\n- `github-get-ratelimit`: Display the current github ReST API request ratelimit.\n- `github-list-repos`: List repositories on Github using various criteria.\n- `github-mv-repos-to-team`: Move repo(s) from one team to another.\n- `github-tag-release`: Tag git repositories, in a GitHub org, that correspond\n    to the products in a published eups distrib tag.\n- `github-tag-teams`: Tag the head of the default branch of all repositories in\n    a GitHub org which belong to the specified team(s).\n\nUse the `--help` flag with any command to learn more.\n\n## Example usage\n\n### `github-auth`\n\nTo generate a personal user token (you will be prompted for your password):\n\n```bash\ngithub-auth -u {{username}}\n```\n\nOr to generate a token with delete privileges:\n\n```bash\ngithub-auth -u {{username}} --delete-role\n```\n\n### `github-fork-org`\n\nTo clone all [github.com/lsst](https://github.com/lsst) repos into an GitHub\norganization called `{{username}}-shadow`:\n\n```bash\ngithub-fork-org \\\n    --dry-run \\\n    --debug \\\n    --src-org 'lsst' \\\n    --dst-org '{{username}}-shadow' \\\n    --token \"$GITHUB_TOKEN\" \\\n    --team 'DM Auxilliaries' \\\n    --team 'DM Externals' \\\n    --team 'Data Management' \\\n    --copy-teams\n\n```\n\nYou'll need to create this shadow organization in advance. Working in a shadow\norganization is useful for testing.\n\n### `github-decimate-org`\n\nIf you want to take a recent fork, you will need to delete the existing shadow\nrepos first:\n\n```bash\ngithub-decimate-org \\\n    --dry-run \\\n    --debug \\\n    --org 'example' \\\n    --token \"$GITHUB_TOKEN\" \\\n    --delete-repos \\\n    --delete-repos-limit 3 \\\n    --delete-teams \\\n    --delete-teams-limit 3\n```\n\nThat requires a token with delete privileges.\n\nTo get more debugging information, set your `DM_SQUARE_DEBUG` variable before\nrunning any command, or use the `-d` debug flag on the command line.\n\n### `github-tag-release`\n\nXXX\n\n### `github-tag-teams`\n\nXXX\n\n### `github-get-ratelimit`\n\nXXX\n\n## Development\n\nTo develop codekit, create a Python virtual environment, and\n\n```bash\ngit clone https://github.com/lsst-sqre/sqre-codekit.git\ncd sqre-codekit\nvirtualenv venv\n. venv/bin/activate\npip install -r requirements.txt\npython setup.py develop\n```\n\nNote that all scripts (in `codekit/cli`) are installed using setuptools\n`entry_points`. See `setup.py`.\n\n### tests\n\nUnit tests can be run with [pytest](http://pytest.org/latest/):\n\n```bash\npython setup.py test\n```\n\nor\n\n```bash\npytest tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsst-dm%2Fcodekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsst-dm%2Fcodekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsst-dm%2Fcodekit/lists"}