Skip to content
/ cli Public

CLI to run a octoherd scripts on one or multiple repositories

License

Notifications You must be signed in to change notification settings

octoherd/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

95adda7 · Apr 6, 2021

History

36 Commits
Apr 6, 2021
Dec 16, 2020
Apr 6, 2021
Feb 26, 2021
Aug 26, 2020
Oct 15, 2020
Aug 26, 2020
Mar 3, 2021
Mar 3, 2021
Mar 7, 2021
Apr 6, 2021
Apr 6, 2021
Feb 25, 2021

Repository files navigation

Octoherd CLI

CLI to run a custom script on one or multiple repositories

Octoherd Avatar

Usage

$ octoherd.js [script] [repos...]

Positionals:
  script  Path to *.js script. Must be an ES Module.
  repos   One or multiple arrays 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                  [default: []]

Options:
  --help                      Show help                                [boolean]
  --version                   Show version number                      [boolean]
  --octoherd-token            Requires the "public_repo" scope for public
                              repositories, "repo" scope for private
                              repositories.                  [string] [required]
  --octoherd-cache            Cache responses for debugging. Creates a ./cache
                              folder if flag 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]

The script must export a script function which takes three parameters:

export async function script(octokit, repository, options) {
  // do something here
}

Examples

Similar projects

License

ISC

About

CLI to run a octoherd scripts on one or multiple repositories

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published