UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Add commitlint job

Merged Zachariah Dzielinski requested to merge commitlint-ci into master
1 file
+ 15
1
Compare changes
  • Side-by-side
  • Inline
+ 15
1
@@ -37,7 +37,11 @@ Big Bang is designed in such a way as to be as easily deployed locally as it is
### Pre-commit hooks
We would like developers to leverage [conventional commits](https://www.conventionalcommits.org/) when contributing. In order to help enforce this we are leveraging client-side pre-commit hooks. This is done using the following tools:
We would require developers to leverage [conventional commits](https://www.conventionalcommits.org/) when contributing.
In order to help enforce this we are leveraging client-side pre-commit hooks.
This is done using the following tools:
- [husky](https://www.npmjs.com/package/husky)
- [commitlint](https://commitlint.js.org/#/)
@@ -62,6 +66,16 @@ This will download `husky` and `commitlint` to your local repo and modify your `
If you have pushed commits that do not conform to the conventional-commit guide lines, you can combine all of the incorrectly formatted commit messages by using `git rebase`. A more expansive guide of how this is done can be found [here](https://www.w3docs.com/snippets/git/how-to-combine-multiple-commits-into-one-with-3-steps.html).
Here is a quick tip to squash all commits for a branch named `test`:
```
git checkout test
git reset $(git merge-base $CI_DEFAULT_BRANCH $(git rev-parse --abbrev-ref HEAD))
git add -A
git commit -m \"feat: example conventional commit\"
git push --force
```
## Iron Bank Images
Per the [charter](https://repo1.dsop.io/platform-one/big-bang/charter), all Big Bang packages will leverage container images from [IronBank](https://ironbank.dsop.io/). In order to pull these images, ImagePullSecrets must be provided to BigBang. To obtain access to these images, follow the guides below. These steps should NOT be used for production since the API keys for a user are only valid when the user is logged into [Registry1](https://registry1.dsop.io)
Loading