marco add user/repo
marco polo
Lists all repos in the configuration.
marco list
Adds a repo to the user's configuration.
Syntax for the parameters is <user>/<repo> [base]
, where user
is the GitHub user name, repo
is the GitHub repo name, and base
is an optional parameter specifying the base branch. The base branch is used for determining if there are any new changes since the last semver tag.
marco add user/repo
marco add user/repo develop
Updates a configured repo's base branch.
Syntax for the parameters is <user>/<repo> <base>
. The command will give a warning if the given repo cannot be found in the configuration.
marco update user/repo master
Remove a repo from the user's configuration.
Syntax for the parameter is <user>/<repo>
. The command will give a warning if the given repo cannot be found in the configuration.
marco remove user/repo
Imports configuration.
Parameter is a JSON string containing the new configuration. Note that double-quotes must be properly escaped when passed as a literal argument. The JSON string may also be piped into Marco (reads from stdin). Warning: Import replaces the existing configuration.
marco import "[{\"user\": \"user\", \"repo\": \"repo\", \"base\": \"base\"}]"
Exports configuration.
Accepts an option, -p, --pretty
, that enables pretty-printing for the JSON configuration.
marco export
marco export --pretty
Execute repo checking.
The Polo command performs the following actions:
- Clones each configured repo to a temporary directory
- Checks each repo for changes
- Repo is considered to have changes if the head of the base branch and the latest semver tag point to different refs
- Cleans up temp files
- Prints all repos that have changes
marco polo