Giter Club home page Giter Club logo

circleci-commitlint-step's Introduction

circleci-commitlint-step CircleCI

Commit message validation with commitlint npm package

What it does?

alt text

alt text

Use

Add the following step to your circleci config.yml:

version: 2

jobs:
  commitlint:
    docker:
      - image: williamlauze/circleci-commitlint:latest
    working_directory: /www
    steps:
      - checkout
      - run:
          name: Lint commit messages
          command: |
            /bin/sh /.scripts/commitlint_range.sh

workflows:
  version: 2
  my_pipeline:
    jobs:
      - commitlint

Private repo settings

You will need to have a github OAUTH token to get the pull request details Create an environment variable in your circleci repository GITHUB_TOKEN_COMMITLINT=yourToken

References

circleci-commitlint-step's People

Contributors

ruisaraiva19 avatar virtuoushub avatar wilau2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

circleci-commitlint-step's Issues

Error merging to `master`: Circle doesn't provide `CIRCLE_COMPARE_URL`

Hey @wilau2, we're using this project for NES.css and it's been working great so far! However, we tried to release v1.0.0 this morning and hit a snag. The commitlint_range.sh script falls back to using the CIRCLE_COMPARE_URL environment variable if CIRCLE_PULL_REQUEST is false. However, when we merged our release PR to master both of those environment variables were false.

Do you have any recommendations on how to handle this? For now I'll probably just update the config to ignore the master branch, but I was wondering if you had handled it a different way?

Relevant links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.