commit-watch
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

CommitWatch

npm node-current npm

Overview

CommitWatch checks commit messages and ensures they conform to the Top Hat commitlint config (loosely inspired by conventional commit spec).

Getting Started

yarn dlx commit-watch --help

You can configure commit-watch via CLI args or via environment variables.

Configuration Variables:

Name Value Description
COMMITWATCH_GITHUB_TOKEN Required Personal access token with write access to GitHub status checks, and read access to your repository.
CI_REPO_OWNER Required The "owner" from https://github.com/\<owner>/<name>.
CI_REPO_NAME Required The "name" from https://github.com/\<owner>/<name>. That is, your repository name.
CI_COMMIT_SHA Required The commit sha to run the linter against.
CI_BASE_BRANCH Defaults to origin/master. The base branch to compare the commit sha against.
COMMIT_WATCH_OUTPUT_DIR Defaults to ./artifacts/test_results/commitwatch/. Directory to write the junit report to.
COMMIT_WATCH_OUTPUT_FILENAME Defaults to commitwatch.junit.xml. The name of the junit report.
DEBUG Set to 'commit-watch' to enable verbose mode.

/commit-watch/

    Package Sidebar

    Install

    npm i commit-watch

    Weekly Downloads

    132

    Version

    2.1.1

    License

    Apache-2.0

    Unpacked Size

    22.9 kB

    Total Files

    19

    Last publish

    Collaborators

    • tophat_npm
    • sdcosta