implement gitlab-ci-cli package
See original GitHub issueI remove issue template because he is not quite suitable for request.
It is will be great have package for gitlab CI, i spend around 2 hours for searching right configuration, but don’t find any information and use workaround:
node_modules/.bin/commitlint --from=HEAD~$(git --no-pager rev-list master..HEAD --count)
I don’t known about right usage this. Please correct me if this is not a very good solution.
Link to gitlab CI environment variables: https://docs.gitlab.com/ce/ci/variables/README.html
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Tutorial: Create and run your first GitLab CI/CD pipeline
This tutorial shows you how to configure and run your first CI/CD pipeline in GitLab. Prerequisites. Before you start, make sure you have:....
Read more >The `.gitlab-ci.yml` file - GitLab Docs
To use GitLab CI/CD, you need: Application code hosted in a Git repository. A file called .gitlab-ci.yml in the root of your repository,...
Read more >GitLab Release CLI tool
The GitLab Release CLI ( release-cli ) tool is a command-line tool for managing releases from the command line or from a CI/CD...
Read more >GitLab CI/CD Examples
This page contains links to a variety of examples that can help you understand how to implement GitLab CI/CD for your specific use...
Read more >GitLab CI/CD
Learn how to use GitLab CI/CD, the GitLab built-in Continuous Integration, Continuous Deployment, and Continuous Delivery toolset to build, test, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Struggled with this for a while, specifically trying to get GitLab CI to check all of the commits in the MR, not just latest.
The above suggestions didn’t quite work for me, but I seem to have a winning script which my CI triggers
Hopefully it helps someone else who comes across this
I finally followed this piece of chunk.
Here is my working snippet to make commit linting work with GitLab CI/CD:
Assuming you’re always merging to
master
(I can’t find the destination branch while merging).