Constructors

Methods

  • Create a GitHub repo for a graphics project.

    Used to create repos in TR and Reuters Graphics GitHub orgs. The name of the repo is taken from the name of the project in package.json.

    graphics github:create-repo

    Description
    Create a remote GitHub repository for graphics project

    Usage
    $ graphics github:create-repo [options]

    Options
    -h, --help Displays this message

    Returns Promise<void>

  • Force a git commit and push.

    This is used in various publishing tools to ensure GitHub is kept in sync with the latest published version of a project.

    graphics github:push

    Description
    Git commit and push to repo

    Usage
    $ graphics github:push [options]

    Options
    -h, --help Displays this message

    Note: This is a no-op in CI environments.

    Parameters

    • Optionalmessage: string

      Commit message

    Returns Promise<void>