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

docs(release): document __INVALID__ conventional commit type #30124

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

llwt
Copy link
Contributor

@llwt llwt commented Feb 20, 2025

Document changes added in #29658

@llwt llwt requested a review from a team as a code owner February 20, 2025 15:04
@llwt llwt requested a review from leosvelperez February 20, 2025 15:04
Copy link

vercel bot commented Feb 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Feb 25, 2025 4:08pm

Copy link

nx-cloud bot commented Feb 20, 2025

View your CI Pipeline Execution ↗ for commit dea08e3.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 3m 20s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 12s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base= --he... ✅ Succeeded 5s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 5s View ↗
nx documentation ✅ Succeeded 33s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-25 16:09:06 UTC

@llwt llwt force-pushed the document-invalid-commit-pattern branch 2 times, most recently from 84ac3ed to a98518e Compare February 20, 2025 15:09
Copy link
Collaborator

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


## Including Invalid Commits in the Changelog

Nx only includes commits in the changelog that match either the [default conventional commit types](https://github.com/nrwl/nx/blob/master/packages/nx/src/command-line/release/config/conventional-commits.ts) or types you've [added to your configuration](#defining-non-standard-commit-types).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not link to the codebase, let's link to the specification to show what valid conventional commits are.

Copy link
Contributor Author

@llwt llwt Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec doesn't state what is valid, outside of fix and feat, unless I'm missing something.

I wanted to link out to the types we define by default for Conventional Commits, but Conventional Commits doesn't dictate a standard. My next thought was to link to packages/nx/src/command-line/release/config/conventional-commits.ts, but I'm not sure if that's a typical thing we do. (also worried about links breaking in the future)

Are you referring to the Angular Convention?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is specifically about invalid commits - commits that do not match the specification and would ordinarily be ineligible for this feature.

It's not about custom commit types like the rest of the document is, where the commit follows the specification in terms of commit structure, but is using custom types.

E.g.

Valid conventional commit with custom type (not relevant to this section):

mycustomtype(optional-scope): a commit message

Invalid convetional commit:

I made a change.

This section is about the latter. Only commits like that will hit the special __INVALID__ type (that is naturally skipped/does nothing by default)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh right, that makes sense. I'll update accordingly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-02-25 at 16 58 11

Co-authored-by: James Henry <james@henry.sc>
@JamesHenry JamesHenry merged commit 44e7b41 into master Feb 26, 2025
12 checks passed
@JamesHenry JamesHenry deleted the document-invalid-commit-pattern branch February 26, 2025 09:25
@JamesHenry
Copy link
Collaborator

This final form is great, thank you!

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

Successfully merging this pull request may close these issues.

2 participants