cherp
check that repos have common files, and add them via PR if they are missing.
example
$ ./cherp.js -h🐦 cherp 🐦 - a tool
List repos in an org not having a license
$ ./cherp license[
Add a GPLv2.0 license file to a repo
$ ./cherp add-file --repo=my-other-repo --license=GPL-2.0
install
git clone https://github.com/hackforla/github-automation ~cd ~/github-automation/check-reponpm i
configuration
Running cherp
requires minimal configuration of ORG_OWNER_TOKEN
, and ORGANIZATION
set into a .env
file
(see .env.example)
or exported to the process environment, e.g. export ORG_OWNER_TOKEN=<your github personal access token>
ORG_OWNER_TOKEN - required
ORGANIZATION - the org or owner of a repo or set of repos
Read more here about creating a Github Personal Access Token
API
check-repo exposes a small command line interface aliased as 🐦 cherp
🐦.
cherp add-file --repo=my-repo --license=GPL-2.0
opens a PR to my-repo with a GPL-2.0 license
cherp license
check all repos in ORGANIZATION
that do not have a recognizable LICENSE file
cherp version
prints the version
cherp mfa
lists any members of the ORGANIZATION
that have not enabled 2fa. Returns an
empty Array if none exist.
LICENSE
GPL-2.0 hackforla © 2020