{"id":18195988,"url":"https://github.com/nickfloyd/octoherd-script-create-pr-templates","last_synced_at":"2025-10-09T15:23:24.880Z","repository":{"id":63011446,"uuid":"564391966","full_name":"nickfloyd/octoherd-script-create-pr-templates","owner":"nickfloyd","description":"Creates PRs to add issue templates across repositories","archived":false,"fork":false,"pushed_at":"2022-11-11T15:40:08.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T19:08:27.487Z","etag":null,"topics":["octoherd-script"],"latest_commit_sha":null,"homepage":null,"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/nickfloyd.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}},"created_at":"2022-11-10T16:07:33.000Z","updated_at":"2023-07-22T11:16:44.000Z","dependencies_parsed_at":"2023-01-22T15:15:13.469Z","dependency_job_id":null,"html_url":"https://github.com/nickfloyd/octoherd-script-create-pr-templates","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickfloyd%2Foctoherd-script-create-pr-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickfloyd%2Foctoherd-script-create-pr-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickfloyd%2Foctoherd-script-create-pr-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickfloyd%2Foctoherd-script-create-pr-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickfloyd","download_url":"https://codeload.github.com/nickfloyd/octoherd-script-create-pr-templates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694878,"owners_count":20980733,"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-11-03T08:05:43.523Z","updated_at":"2025-10-09T15:23:19.847Z","avatar_url":"https://github.com/nickfloyd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# octoherd-script-create-pr-templates\n\n\u003e Creates PRs to add issue templates across repositories\n\n[![@latest](https://img.shields.io/npm/v/octoherd-script-create-pr-templates.svg)](https://www.npmjs.com/package/octoherd-script-create-pr-templates)\n[![Build Status](https://github.com/nickfloyd/octoherd-script-create-pr-templates/workflows/Test/badge.svg)](https://github.com/nickfloyd/octoherd-script-create-pr-templates/actions?query=workflow%3ATest+branch%3Amain)\n\n## Usage\n\nCreate a `pull_request_template.md` with your own PR template content. Then run the following using the `--templateDirectory` parameter to source your local template file(s).\n\nMinimal usage\n\n```js\nnpx octoherd-script-create-pr-templates \\\n  --octoherd-repos nickfloyd/octokat octokit/octokit.net \\\n  --templateDirectory $(pwd)/templates\n```\n\nPass all options as CLI flags to avoid user prompts\n\n```js\nnpx octoherd-script-create-pr-templates \\\n  -T ghp_0123456789abcdefghjklmnopqrstuvwxyzA \\\n  -R \"nickfloyd/*\" \\\n  --octoherd-repos nickfloyd/octokat octokit/octokit.net \\\n  --templateDirectory $(pwd)/templates\n```\n\nNOTE: This script assumes the standard \"hidden\" directory structure in the target repo(s) - i.e. .github/ as defined [here](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository)\n\n## Options\n\n| option                       | type             | description                                                                                                                                                                                                                                 |\n| ---------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `--template-directory`       | string           | **Required.** The location of the template directory on a local instance                                                                                                                                                                    |\n| `--label-name`       | string           | **Optional.** The name of the label that should be added to the PR instance                                                                                                                                                                    |\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## 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%2Fnickfloyd%2Foctoherd-script-create-pr-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickfloyd%2Foctoherd-script-create-pr-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickfloyd%2Foctoherd-script-create-pr-templates/lists"}