Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FeatureReq] Easy Circle CI setup #601

Closed
MathiasKandelborg opened this issue Mar 24, 2019 · 6 comments
Closed

[FeatureReq] Easy Circle CI setup #601

MathiasKandelborg opened this issue Mar 24, 2019 · 6 comments

Comments

@MathiasKandelborg
Copy link

MathiasKandelborg commented Mar 24, 2019

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:

  1. Find the last successful build
    1.1. If any, get that commit sha
    1.2. If none, fall back to master branch
  2. 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.

@byCedric
Copy link
Member

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!

@BorntraegerMarc
Copy link

I see that commitlint is using CircleCI now itself. So an easy integration would be appropriate 😉

@rrjohnson85
Copy link

If you're using pipelines in CircleCI, I believe the following would work:

npx commitlint --from << pipeline.git.base_revision >> --to << pipeline.git.revision >>

@escapedcat
Copy link
Member

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

@AdeAttwood
Copy link
Member

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.

@escapedcat
Copy link
Member

I believe this has been done with this: https://github.com/conventional-changelog/commitlint-orb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

7 participants