{"id":16812899,"url":"https://github.com/acrobat/subtree-splitter","last_synced_at":"2025-03-22T03:31:09.829Z","repository":{"id":43397818,"uuid":"395436835","full_name":"acrobat/subtree-splitter","owner":"acrobat","description":"A Github action to synchronize a monolithic repository to standalone repositories by using splitsh-lite.","archived":false,"fork":false,"pushed_at":"2025-02-25T16:03:19.000Z","size":141,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T21:40:30.867Z","etag":null,"topics":["github-actions","opensource-management","publishing","splitsh","splitsh-lite","subtree-split"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/acrobat.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":"2021-08-12T20:30:34.000Z","updated_at":"2025-02-28T21:05:59.000Z","dependencies_parsed_at":"2024-10-25T04:20:36.550Z","dependency_job_id":"95c8499e-3586-430f-9a09-47bb3ea71fe9","html_url":"https://github.com/acrobat/subtree-splitter","commit_stats":{"total_commits":45,"total_committers":6,"mean_commits":7.5,"dds":0.3555555555555555,"last_synced_commit":"d5d8151d8e29ba9fbb414be6e28c59c5b62ab32f"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrobat%2Fsubtree-splitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrobat%2Fsubtree-splitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrobat%2Fsubtree-splitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrobat%2Fsubtree-splitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acrobat","download_url":"https://codeload.github.com/acrobat/subtree-splitter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244177648,"owners_count":20410993,"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":["github-actions","opensource-management","publishing","splitsh","splitsh-lite","subtree-split"],"created_at":"2024-10-13T10:23:54.495Z","updated_at":"2025-03-22T03:31:09.459Z","avatar_url":"https://github.com/acrobat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# subtree-splitter action\n\nThis actions synchronizes a monolithic repository to standalone repositories by using [splitsh-lite](https://github.com/splitsh/lite).\n\n## Usage\n\n### Inputs\n\n\u003e Specify using `with` keyword\n\n* `config-path` - **(Required)** Location of the subtree split mapping configuration\n* `batch-size` - How many subtreesplits should be processed in parallel. It is recommended to keep this amount low (or even at 1) for large repositories.\n\n### Example workflow\n\n#### Configuration\n\nCreate a configuration file with the mapping of the different subtree splits. Each subtree split item contains a name (must be unique), \ndirectory in the current repository and a target git repository.\n\n```json\n{\n    \"subtree-splits\": [\n        {\n            \"name\": \"core\",\n            \"directory\": \"src/Core\",\n            \"target\": \"git@github.com:example/core-package.git\"\n        }\n    ]\n}\n\n```\n\n#### Workflow\n\nExample workflow to sync commits and tags.\n\n```yaml\non:\n    push:\n        # Only trigger for specific branches or changes in specific paths.\n        branches:\n            - '*'\n        paths:\n            - src/**\n        # Tag push events should be ignored, they will be handled with the create event below.\n        tags-ignore:\n            - '*'\n    create:\n        tags:\n            - '*'\n    delete:\n        tags:\n            - '*'\n\njobs:\n    sync_commits:\n        runs-on: ubuntu-latest\n        name: Sync commits\n        if: github.repository == 'your-org/your-repository' # Execute this workflow job only on the main repository.\n        steps:\n            -   uses: actions/checkout@v2\n                with:\n                    persist-credentials: false\n                    fetch-depth: 0\n\n            # Add a personal access token to the repository secrets. This will allow the splitter action to push the new commits\n            -   uses: frankdejonge/use-github-token@1.0.2\n                with:\n                    authentication: 'username:${{ secrets.PERSONAL_GITHUB_TOKEN }}'\n                    user_name: 'Committer name'\n                    user_email: 'Committer email'\n\n            # Cache the splitsh executable to speedup future runs\n            -   name: Cache splitsh-lite\n                uses: actions/cache@v2\n                with:\n                    path: './splitsh'\n                    key: '${{ runner.os }}-splitsh-v101'\n\n            # Sync commits and tags for the configured subtree splits\n            -   name: subtree split\n                uses: acrobat/subtree-splitter@v1.1.3\n                with:\n                    config-path: .github/subtree-splitter-config.json # Reference the location where you saved your config file\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrobat%2Fsubtree-splitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facrobat%2Fsubtree-splitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrobat%2Fsubtree-splitter/lists"}