You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A starter template for orb projects. Build, test, and publish orbs automatically on CircleCI with [Orb-Tools](https://circleci.com/orbs/registry/orb/circleci/orb-tools).
7
+
Lint your commit messages in a CircleCI job.
8
8
9
-
Additional READMEs are available in each directory.
9
+
Add this orb's `commitlint/lint` job to your existing CircleCI workflow to utilize [commitlint](https://github.com/conventional-changelog/commitlint) for validating commit messages against the [conventional commit format](https://conventionalcommits.org/).
10
10
11
+
## Example
12
+
13
+
This example shows importing the `commitlint` orb into a basic CircleCI 2.1 config file, and adding the `commitlint/lint` job to a workflow. This configuration will lint every commit pushed to the repository.
CircleCI will report back the status of the `commitlint/lint` job and block a Pull Request from being merged if the job fails.
28
+
29
+
## Run the commitlint orb locally
30
+
Want to test out the commitlint orb in your CI pipeline before pushing your changes? Use the CircleCI CLI to run any job defined in your `.circleci/config.yml` locally, including jobs from orbs.
31
+
32
+
Assuming your config file looks similar to the example above, and you have the [CircleCI CLI](https://circleci.com/docs/2.0/local-cli/) installed, you can run this orb for the current project locally with the following command.
# Descriptions should be short, simple, and informative.
4
+
commitlint helps your team adhere to a standard commit convention.
5
+
Add commit message linting to your CI process to prevent non-standard commit messages from being merged, and provide contrinbutors with details for resolving their PR.
7
6
8
-
# This information will be displayed in the orb registry and is not mandatory.
0 commit comments