commitlint
commitlint copied to clipboard
[FeatureReq] Easy Circle CI setup
It would be great to install a circle-ci package or use an orb to quickly get started.
There's an ENV variable called CIRCLE_COMPARE_URL
which can be used to:
- Find the last successful build
1.1. If any, get that commit sha
1.2. If none, fall back to
master
branch - Define range from current commit sha to commit from 1
Although it might be βbetterβ if we could find the default branch at 1.2, this is something we can build too for commitlint.
Thanks for the request. I might be interested too because the place where I work at is considering switching to CircleCI. If I finish some other issues, I'll be available to help get this feature of the ground!
I see that commitlint
is using CircleCI now itself. So an easy integration would be appropriate π
If you're using pipelines in CircleCI, I believe the following would work:
npx commitlint --from << pipeline.git.base_revision >> --to << pipeline.git.revision >>
If you're using pipelines in CircleCI, I believe the following would work:
npx commitlint --from << pipeline.git.base_revision >> --to << pipeline.git.revision >>
If this is working for everyone it would be great if someone creates a PR to document this
I don't use CircleCI, but there are some docs on the website that haven't been linked to yet.
Could be worth updating that if it's not what you are after. The above snippet is not in there.
I believe this has been done with this: https://github.com/conventional-changelog/commitlint-orb