FAQ | This is a LIVE service | Changelog

commitlint to look for other configuration files than only .commitlintrc

👓 What did you see?

The commitlint job only checks for .commitlintrc to be present and if not, uses the standard bundled devops .commitlintrc.

What did you expect to see?

The commitlint job to also check for other configuration file formats such as:

  • .commitlintrc
  • .commitlintrc.json
  • .commitlintrc.yaml
  • .commitlintrc.yml
  • .commitlintrc.js
  • .commitlintrc.cjs
  • .commitlintrc.mjs
  • .commitlintrc.ts
  • .commitlintrc.cts
  • commitlint.config.js
  • commitlint.config.cjs
  • commitlint.config.mjs
  • commitlint.config.ts
  • commitlint.config.cts

See https://commitlint.js.org/reference/configuration.html

💻 Where does this happen?

Repositories that use the commitlint CI template.

🔬 How do I recreate this?

  1. Use a repository that has .commitlintrc.json in the root (with different content than standard bundled devops .commitlintrc - https://gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/-/blob/master/commitlint/.commitlintrc?ref_type=heads)
  2. Include commitlint CI template
  3. Run job

📚 Any additional information?