{"id":13698219,"url":"https://github.com/oscard0m/octoherd-script-sync-repo-settings","last_synced_at":"2025-03-19T08:30:42.347Z","repository":{"id":40698114,"uuid":"372769957","full_name":"oscard0m/octoherd-script-sync-repo-settings","owner":"oscard0m","description":"This script takes settings from a repository, used as template, and applies those settings to your selected repository/s","archived":false,"fork":false,"pushed_at":"2024-10-24T07:53:28.000Z","size":82,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-25T04:11:43.901Z","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/oscard0m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-06-01T09:15:39.000Z","updated_at":"2024-10-24T07:53:31.000Z","dependencies_parsed_at":"2023-01-29T17:01:20.461Z","dependency_job_id":"c7e0e5b8-947c-4ef7-a973-88b10f013039","html_url":"https://github.com/oscard0m/octoherd-script-sync-repo-settings","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":"0.31818181818181823","last_synced_commit":"a51e766bf3e41aab2c19daa1c3caa76ec8ee751f"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscard0m%2Foctoherd-script-sync-repo-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscard0m%2Foctoherd-script-sync-repo-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscard0m%2Foctoherd-script-sync-repo-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscard0m%2Foctoherd-script-sync-repo-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscard0m","download_url":"https://codeload.github.com/oscard0m/octoherd-script-sync-repo-settings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243976469,"owners_count":20377691,"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.828Z","updated_at":"2025-03-19T08:30:41.992Z","avatar_url":"https://github.com/oscard0m.png","language":"JavaScript","funding_links":[],"categories":["Scripts"],"sub_categories":[],"readme":"# octoherd-script-sync-repo-settings\n\n\u003e This script takes [Repository Options](https://docs.github.com/en/github/administering-a-repository/configuring-pull-request-merges) from a Repository passed as argument and is used as template to apply same Options for other repositories.\n\n[![@latest](https://img.shields.io/npm/v/octoherd-script-sync-repo-settings.svg)](https://www.npmjs.com/package/octoherd-script-sync-repo-settings)\n[![Build Status](https://github.com/oscard0m/octoherd-script-sync-repo-settings/workflows/Test/badge.svg)](https://github.com/oscard0m/octoherd-script-sync-repo-settings/actions?query=workflow%3ATest+branch%3Amain)\n\n## Usage\n\nMinimal usage\n\n```js\n$ npx octoherd-script-sync-repo-settings \\\n--template \"octoherd/cli\"\n```\n\nPass all options as CLI flags to avoid user prompts\n\n```js\nnpx octoherd-script-sync-repo-settings \\\n  --template \"octoherd/cli\" \\\n  -T ghp_0123456789abcdefghjklmnopqrstuvwxyzA \\\n  -R \"oscard0m/*\"\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## Inspired by\n\n#### Other Octoherd scripts\n* [sync-branch-protection](https://github.com/octoherd/script-sync-branch-protections) by [@gr2m](https://github.com/gr2m)\n* [set-pr-merge-config](https://github.com/MunifTanjim/octoherd-script-set-pr-merge-config) by [@MunifTanjim](https://github.com/MunifTanjim)\n\n#### Other GitHub Apps\n* [sync-repo-settings](https://github.com/googleapis/repo-automation-bots/tree/master/packages/sync-repo-settings) by [Google](https://github.com/googleapis)\n* [Settings GitHub App](https://github.com/probot/settings) by [Probot](https://github.com/probot)\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## About Octoherd\n\n[@octoherd](https://github.com/octoherd/) is project to help you keep your GitHub repositories in line.\n\n## License\n\n[ISC](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscard0m%2Foctoherd-script-sync-repo-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscard0m%2Foctoherd-script-sync-repo-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscard0m%2Foctoherd-script-sync-repo-settings/lists"}