v0.2.18-alpha
CLI leveraging Deno to run an octoherd script on one or multiple repositories. Supports Typescript natively.
Attributes
Includes Deno configuration
Repository
Current version released
a year ago
Dependencies
deno.land/x
Versions
- v0.2.18-alphaLatest
- v0.2.17-alpha
- v0.2.16-alpha
- v0.2.14-alpha
- v0.2.13-alpha
- v0.2.12-alpha
- v0.2.11-alpha
- v0.2.10-alpha
- v0.2.9-alpha
- v0.2.8-alpha
- v0.2.7-alpha
- v0.2.6-alpha
- v0.2.5-alpha
- v0.2.4-alpha
- v0.2.3-alpha
- v0.2.2-alpha
- v0.2.1-alpha
- v0.2.0-alpha
- v0.1.9-alpha
- v0.1.8-alpha
- v0.1.7-alpha
- v0.1.6-alpha
- v0.1.5-alpha
- v0.1.4-alpha
- v0.1.3-alpha
- v0.1.2-alpha
- v0.1.1-alpha
- v0.1.0-alpha
- v0.0.9-alpha
- v0.0.8-alpha
- v0.0.7-alpha
- v0.0.6-alpha
- v0.0.5-alpha
- v0.0.4-alpha
- v0.0.3-alpha
- v0.0.2-alpha
- v0.0.1
Octoherd CLI
CLI to run a custom script on one or multiple repositories
Usage
Usage: octoherd run -S path/to/script.js [options]
Options:
--help Show help [boolean]
-S, --octoherd-script Path to *.js script. Must be an ES Module. [string] [required]
-T, --octoherd-token Requires the "public_repo" scope for public repositories, "rep
o" scope for private repositories. Creates an OAuth token if n
ot set. [string]
-R, --octoherd-repos One or multiple repositories in the form of 'repo-owner/repo-n
ame'. 'repo-owner/*' will find all repositories for one owner.
'*' will find all repositories the user has access to.
To exclude a repository use '!repo-owner/repo'. Will prompt
for repositories if not set. [array]
--octoherd-cache Cache responses for debugging. Creates a ./cache folder if fla
g is set. Override by passing custom path [string]
--octoherd-debug Show debug logs [boolean] [default: false]
--octoherd-bypass-confirms Bypass prompts to confirm mutating requests
[boolean] [default: false]
--octoherd-base-url When using with GitHub Enterprise Server, set to the root URL
of the API. For example, if your GitHub Enterprise Server's h
ostname is github.acme-inc.com, then set to https://github.ac
me-inc.com/api/v3. [string]
--version Show version number [boolean]
Examples:
octoherd run -S path/to/script.js Minimal usage example
octoherd run -S path/to/script.js -T $TOKEN -R Pass token and repos as CLI flags
octoherd/cli
octoherd run -S path/to/script.js -T $TOKEN -R Avoid prompts for token and repos
octoherd/cli
octoherd run -S path/to/script.js -T $TOKEN -R Avoid any prompts
octoherd/cli --octoherd-bypass-confirms
octoherd run -S path/to/script.js -T $TOKEN -R Will fetch all repositories except repo-owner/hello-world
'repo-owner/*' -R '!repo-owner/hello-world
octoherd run -S path/to/script.js Run octoherd script against GHES
--octoherd-base-url
https://github.acme-inc.com/api/v3
The script
must export a script
function which takes three parameters:
export async function script(octokit, repository, options) {
// do something here
}
octokit
is an instance ofoctokit.js
’s Octokitrepository
is the response data ofGET /repos/{owner}/{repo}
options
are all options passed to the CLI which are not used byoctoherd
.
Examples
Similar projects
- NerdWalletOSS/shepherd - A utility for applying code changes across many repositories.
- FormidableLabs/multibot - A friendly multi-repository robot