{"id":13698168,"url":"https://github.com/octoherd/script-sync-branch-protections","last_synced_at":"2025-05-04T00:31:07.261Z","repository":{"id":43341500,"uuid":"343952322","full_name":"octoherd/script-sync-branch-protections","owner":"octoherd","description":"An octoherd script to apply branch protection settings from oneand apply it others","archived":false,"fork":false,"pushed_at":"2025-04-08T17:23:18.000Z","size":220,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T18:31:04.533Z","etag":null,"topics":["octoherd-script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/octoherd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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-03-03T00:28:48.000Z","updated_at":"2025-04-08T17:23:21.000Z","dependencies_parsed_at":"2024-02-20T08:29:54.019Z","dependency_job_id":"d187f0b0-2a04-4f65-9d3a-550a98231663","html_url":"https://github.com/octoherd/script-sync-branch-protections","commit_stats":{"total_commits":49,"total_committers":4,"mean_commits":12.25,"dds":0.4897959183673469,"last_synced_commit":"91fc6b380b1e71e982a9ddf0c23f3522315394f9"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-sync-branch-protections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-sync-branch-protections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-sync-branch-protections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octoherd%2Fscript-sync-branch-protections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octoherd","download_url":"https://codeload.github.com/octoherd/script-sync-branch-protections/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252272944,"owners_count":21721831,"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":["octoherd-script"],"created_at":"2024-08-02T19:00:41.054Z","updated_at":"2025-05-04T00:31:06.915Z","avatar_url":"https://github.com/octoherd.png","language":"JavaScript","funding_links":[],"categories":["Scripts"],"sub_categories":[],"readme":"# sync branch protections\n\n\u003e An [octoherd](https://github.com/octoherd) script to apply branch protection settings from oneand apply it others\n\n## Usage\n\n```\n$ npx @octoherd/script-sync-branch-protections \\\n  --template \"octoherd/cli\"\n```\n\nPass all options as CLI flags to avoid user prompts\n\n```\n$ npx @octoherd/script-sync-branch-protections \\\n  --template \"octoherd/cli\" \\\n  -T ghp_0123456789abcdefghjklmnopqrstuvwxyzA \\\n  -R \"octoherd/repository-with-script-folders\"\n```\n\n## Options\n\n| option                       | type             | description                                                                                                                                                                                                                                 |\n| ---------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `--template`                 | string           | **Required.** Repository name from where to copy the branch protection settings. Example: `--template \"octoherd/cli\"`                                                                                                                       |\n| `--octoherd-token`, `-T`     | string           | A personal access token ([create](https://github.com/settings/tokens/new?scopes=repo)). Script will create one if option is not set                                                                                                         |\n| `--octoherd-repos`, `-R`     | array of strings | One or multiple space-separated repositories in the form of `repo-owner/repo-name`. `repo-owner/*` will find all repositories for one owner. `*` will find all repositories the user has access to. Will prompt for repositories if not set |\n| `--octoherd-bypass-confirms` | boolean          | Bypass prompts to confirm mutating requests                                                                                                                                                                                                 |\n\n## License\n\n[ISC](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoherd%2Fscript-sync-branch-protections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctoherd%2Fscript-sync-branch-protections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctoherd%2Fscript-sync-branch-protections/lists"}