{"id":15293473,"url":"https://github.com/100automations/cherp","last_synced_at":"2026-01-26T20:53:23.669Z","repository":{"id":40713231,"uuid":"280573853","full_name":"100Automations/cherp","owner":"100Automations","description":"Check repos for certain files and add them via PR if they don't exist","archived":false,"fork":false,"pushed_at":"2022-06-25T14:20:46.000Z","size":399,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T07:15:34.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/100Automations.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}},"created_at":"2020-07-18T03:30:35.000Z","updated_at":"2020-09-19T19:28:57.000Z","dependencies_parsed_at":"2022-07-29T04:18:48.648Z","dependency_job_id":null,"html_url":"https://github.com/100Automations/cherp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"100Automations/.github-automations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fcherp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fcherp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fcherp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/100Automations%2Fcherp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/100Automations","download_url":"https://codeload.github.com/100Automations/cherp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246285816,"owners_count":20752958,"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":[],"created_at":"2024-09-30T16:48:53.965Z","updated_at":"2026-01-26T20:53:23.638Z","avatar_url":"https://github.com/100Automations.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cherp\ncheck that repos have common files, and add them via PR if they are missing.\n\n# example\n```bash\n$ ./cherp.js -h\n🐦 cherp 🐦 - a tool for CHEcking github RePos\n----------------------------------------------\nUsage:\n\n    $ ./cherp.js -h\n      show this help output\n\n    $ cherp add-file --license GPL-2.0 --repo my-repo\n      adds add GPL-2.0 license file to \"my-repo\"\n```\n\nList repos in an org not having a license\n```bash\n$ ./cherp license\n[\n  { id: 202489481, name: 'my-repo', full_name: 'my-org/my-repo' },\n  { id: 253125888, name: 'my-other-repo', full_name: 'my-org/my-other-repo' }\n]\n```\n\nAdd a GPLv2.0 license file to a repo\n```bash\n$ ./cherp add-file --repo=my-other-repo --license=GPL-2.0\n```\n\n# install\n```bash\ngit clone https://github.com/hackforla/github-automation ~\ncd ~/github-automation/check-repo\nnpm i\n```\n\n# configuration\nRunning `cherp` requires minimal configuration of `GITHUB_TOKEN`, and `GITHUB_ORG` set into a `.env` file\n(see [.env.example](.env.example))\nor exported to the process environment, e.g. `export GITHUB_TOKEN=\u003cyour github\npersonal access token\u003e`\n\n`GITHUB_TOKEN - required`\n`GITHUB_ORG - the org or owner of a repo or set of repos`\n\n[Read more here about creating a Github Personal Access\nToken](https://github.com/settings/tokens)\n\n# API\ncheck-repo exposes a small command line interface aliased as :bird: `cherp` :bird:.\n\n### `cherp add-file --repo=my-repo --license=GPL-2.0`\nopens a PR to my-repo with a GPL-2.0 license\n\n### `cherp license`\ncheck all repos in `GITHUB_ORG` that do not have a recognizable LICENSE file\n\n### `cherp version`\nprints the version\n\n### `cherp mfa`\nlists any members of the `GITHUB_ORG` that have not enabled 2fa. Returns an\nempty Array if none exist.\n\n# LICENSE\nGPL-2.0\nhackforla © 2020\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100automations%2Fcherp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F100automations%2Fcherp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F100automations%2Fcherp/lists"}