26 Commits

Author SHA1 Message Date
Mark Lindsey 3d1e544812 chore(repo): commit lint mention that commits should be lowercase (#34199)
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
Commit linting does not mention requirement for commit message to be
lowercase.
<!-- This is the behavior we have today -->

## Expected Behavior
Hook message should instruct user to use all lowercase for commit
message.
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2026-01-23 11:19:42 -05:00
Craigory Coppola c6de3de4a0 chore(repo): mitigate script injection vulnerability in PR title validation (#32488) 2025-08-23 12:33:28 +04:00
Jason Jean 4383b649e4 chore(repo): add commit-msg hook for immediate commit validation (#32269)
## Current Behavior

Commit message validation only happens during the pre-push hook, which
means developers don't get feedback about incorrect commit message
format until they try to push their changes to the remote repository.

## Expected Behavior

Commit messages should be validated immediately when creating a commit,
providing instant feedback and preventing incorrectly formatted commits
from being created in the first place.

## Changes Made

- **Add `.husky/commit-msg` hook** - Validates commit messages before
commit creation
- **Enhance `scripts/commit-lint.js`** - Support both commit-msg hook
and existing pre-push validation
- **Add WIP support** - Allow "wip" messages to bypass format validation
for work-in-progress commits
- **Maintain backward compatibility** - Existing pre-push validation
continues to work

## Benefits

- Immediate feedback on commit message format
- Prevents bad commits from being created
- Supports WIP commits for development workflow  
- No disruption to existing validation process

## Related Issue(s)

This improves the developer experience by catching commit message format
issues earlier in the workflow.
2025-08-08 10:06:23 -04:00
Leosvel Pérez Espinosa 1a9405b0bc chore(repo): fix the regex to validate commits (#31630)
## Current Behavior

The string regex the script uses to validate commits is not correctly
escaped.

## Expected Behavior

The string regex the script uses to validate commits should be correctly
escaped.
2025-06-18 13:36:14 -04:00
Austin Fahsl 888110a20b chore(repo): exclude master commits from commit linting (#22029) 2024-02-27 19:30:52 -07:00
Q.Ben Zheng c7288395d4 chore(repo): use cz-git as commitizen adapter and CLI (#13124) 2023-01-08 23:39:54 -05:00
Miroslav Jonaš 8d588c96c6 chore(repo): improve commit lint script to allow breaking change syntax (#12293) 2022-09-28 18:39:09 +00:00
Jeff Cross b4732e6f3a chore(repo): change ok emoji to thumbs up in commit-lint (#4890) 2021-02-25 09:24:59 +02:00
Vivek ff5048e23c cleanup(misc): misc cleanup
* cleanup(testing): simplify registering of collections

* cleanup(testing): remove unnecessary number from variable name

* cleanup(core): update error message

* cleanup(nx-plugin): use object destructuring in normalize-options.ts
2021-02-22 12:46:46 -05:00
Sebastiandg7 2770ec0cff chore(repo): print commitizen types & scopes on commit lint error 2020-07-21 21:09:41 -04:00
Sebastiandg7 65db0503aa chore(repo): use commitizen config in commit linting
Use the commitizen configuration during the commit linting process to be aware of any types/scope
moification without requiring additional changes in the commit lint script

ISSUES CLOSED: #3313
2020-07-21 21:09:41 -04:00
Johannes Schobel ab24c9d8c8 cleanup(misc): remove duplicate value in script (#2598) 2020-03-03 09:37:01 -05:00
Jay Bell a39587a350 feat(nest): implement nest lib schematic (#2540) 2020-03-02 11:20:45 -05:00
Rares Matei 9d163551a2 feat(linter): add standalone nx linter (#2462) 2020-02-25 15:24:33 -05:00
Jonathan Cammisuli fe98e29e4b feat(nx-plugin): add new package for creating nx plugins 2020-01-21 15:18:13 -05:00
Victor Savkin b04b18d07e feat(repo): correctly validate revert commits 2019-12-28 11:55:40 -05:00
Victor Savkin 370e87f53b cleanup(repo): dev experience cleanup (#2142) 2019-12-04 14:47:21 -05:00
victor savkin 59543a3b70 cleanup(repo): clean up scopes and commit types 2019-12-04 09:45:15 -05:00
Victor Savkin fffd94ee88 build(nx): fix lint check 2019-11-22 19:44:33 -05:00
Victor Savkin 4ef3a771ef fix(nx): update the migrate command to handle edge cases 2019-09-11 18:09:28 -04:00
victor savkin 87f4d45311 Revert "chore(nx): add typescript eslint to 2.1.0"
This reverts commit 12f62ece58.
2019-09-09 12:21:05 -04:00
Victor Savkin 12f62ece58 chore(nx): add typescript eslint to 2.1.0 2019-09-08 14:40:21 -04:00
Victor Savkin 644047b474 build(nx): more strickly enforce commit messages 2019-08-29 15:57:25 -04:00
Benjamin Cabanes 5c4db34e37 fix(scripts): checkcommit allows release commit (#740) 2018-09-14 10:43:19 -04:00
ben f93d8e3d36 fix(command-line): add ng command test on affected parallel
When running the affected command with the `--parallel` option, `npm-run-all` is used to achieve the parallel execution of the desired tasks. Because of the use of `npm-run-all`, the `ng` command should be visible and declared as script command in the `package.json` of your project.

This adds a verification before runing the command with the `--parallel` option to make sure the `package.json` has the `ng: "ng"` command in the `scripts` section.

close #700
2018-08-23 11:24:55 -04:00
ben 78b1ea19e7 chore(commitizen): add cz-conventional-changelog
This adds the ability to automate the format of the commit by prompting the information needed in sequence.
It is then easier to follow the standard format of the repository.
A commit check has been added to the CI too.
2018-08-22 10:49:31 -04:00