3.0.23 • Published 6 days ago

techor-conventional-commits v3.0.23

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago
  • Human-readable sentence case commits format
  • Sometimes strict and sometimes loose commit formats
  • Not only Monorepo but also single-package repositories
  • Release rules are used for semantic analysis of semantic releases to bump versions automatically
  • Groups are used to group changelogs
  • This also applies to the conventional-changelog ecosystem

Commit Message Header

The header has a particular format that includes a Type, a Target, and a Summary:

Type(Target): Summary
  ┊     ┊
  ┊     └─⫸ Target: Workspace, Package or Role
  ┊
  └─⫸ Type: Bump, Feat, New, Perf, Add, Update, Improve, Fix, Deprecate, Drop, Docs, Upgrade, Revert, Example, Test, Refactor, Chore, Misc
  • Type
    • Sentense case only
  • Target
    • Sentense case only
    • Accept starting with Markdown characters ` * _ # ~
    • Can be omitted in one workspace
  • Summary
    • Sentense case only
    • Accept starting with Markdown characters ` * _ # ~
    • No period at the end

Semver Commits

Such commits result in version bumps.

Patch

Perf Add Update Improve Fix Deprecate Drop Upgrade Revert Bump(Patch) Docs(README)

Bug Fixes

Changelog +0.0.1 A change to a system or product designed to handle a programming bug/glitch.

Fix: <Summary>
Fix(Target): <Summary>

🟢 Good for a monorepo

Fix(CSS): HEX codes were incorrectly parsed as selectors
     ┊    ┊
     ┊    └─⫸ A brief description of the specific error
     ┊
     └─⫸ CSS is a workspace package

🔴 Bad for a monorepo

Fix: Fix issues by extracting hex codes with strict rules
   ┊  ┊                 ┊
   ┊  ┊                 └─⫸ Describe the problem rather than the solution
   ┊  ┊
   ┊  └─⫸ Don't repeat the word `Fix` in Summary
   ┊
   └─⫸ Without a `(Target)`, the viewer cannot identify the participating workspace

Performance Upgrades

Changelog +0.0.1

Perf: <Summary>
Perf(Target): <Summary>

Example

Perf: Refresh cache when configuration changes

Additions

Changelog +0.0.1

Add: <Summary>
Add(Target): <Summary>

Example

Add(CSS): Option `.preference` for default theme

Improvements

Changelog +0.0.1

Improve: <Summary>
Improve(Target): <Summary>

Example

Improve(Home): Swap the order of **Feature** and **Pricing**

Updates

Changelog +0.0.1 Static content updates such as articles, news, about, profile, etc.

Update: <Summary>
Update(Target): <Summary>

Example

Update(Team): The member's job title changed

Upgrades

Changelog +0.0.1 Upgrade environment, system, dependencies, etc.

Upgrade: <Summary>
Upgrade(Target): <Summary>

Example

Upgrade(Compiler): Dependency `@master/css@^2.0.0`

Deprecations

Changelog +0.0.1 Alias: Drop Deprecate features, options, parameters, units, pages, etc.

Deprecate: <Summary>
Deprecate(Target): <Summary>

Example

Drop(Normal CSS): `--font-mono` `--font-sans` `--font-serif` CSS variables

Reversions

Changelog +0.0.1

Revert: "<Reverted Commit Header>"


This reverts commit <Reverted Commit Hash>.

If you are using Git Graph extension for VSCode, Clicking Revert will automatically generate the following format:

Revert "<Reverted Commit Header>"


This reverts commit <Reverted Commit Hash>.

Example

Revert "Fix(Repo): PeerDependencies -> Dependencies"


This reverts commit 779347237eef77e9137f88095e1fb813e5101c2b.

Update README Ungrouped

+0.0.1 The README.md of the NPM package can only be updated by releasing a new version. At this time, it's very convenient to trigger the patch through:

Docs(README): <Summary>
Docs(README): Features section

It's reasonable to update README.md by bumping to the patch version because the documentation is part of this version.

Manual

+0.0.1 Manually bump a patch version due to special reasons.

Bump(Patch): <Summary>

Example

git commit --allow-empty -m 'Bump(Patch): `+0.0.1`'

Minor

Feat New Bump(Minor)

New Features

Changelog +0.1.0 Alias: New

Feat: <Summary>
Feat(Target): <Summary>

Example

New(Syntax): A new shorthand `WxH` for `width:` and `height:`

Manual

+0.1.0 Manually bump a minor version due to special reasons.

Bump(Minor): <Summary>

Example

git commit --allow-empty -m 'Bump(Minor): `+0.1.0`'

Major

Bumping to the next major version should be triggered manually by the manager rather than relying on a flag in a given commit.

Format

Bump(Major): <Summary>

No clear motivation for <Summary> yet? Hit Version or the next version, like v2.0.0.

🟢 Good for a monorepo

git commit --allow-empty -m 'Bump(Major): Master CSS v2.0'

This is just a commit used to trigger version analysis, don't be obsessed with changes in files, so add --allow-empty

Other Commits

Trivial routine commits include test cases, examples, and environment configurations.

Docs Tests Example Chore Misc

Documentation

Docs: <Summary>
Docs(Target): <Summary>

Example

Docs(CSS): Initialize Master CSS with custom configuration

Tests

Test: <Summary>
Test(Target): <Summary>

Example

Test(Syntax): Check CSS rules for `WxH` output

Examples

Example: <Summary>
Example(Target): <Summary>

Example

Example(Next.js 13): Update to layouts RFC

Miscellaneous

  • Alias: Chore or no prefix
Misc: <Summary>
Misc(Target): <Summary>
<Summary>

Example

Chore: Update README.md

I prefer no prefix; having to keep prefixing every frequent trivial item is annoying, and marking trivial items doesn't make much sense.

🟢 Better day-to-day development experience

Update README.md
3.0.23

6 days ago

3.0.22

11 days ago

3.0.21

17 days ago

3.0.20

18 days ago

3.0.19

18 days ago

3.0.18

2 months ago

3.0.16

3 months ago

3.0.17

3 months ago

3.0.14

3 months ago

3.0.15

3 months ago

3.0.12

3 months ago

3.0.13

3 months ago

3.0.10

3 months ago

3.0.11

3 months ago

3.0.8

3 months ago

3.0.7

3 months ago

3.0.6

3 months ago

3.0.9

3 months ago

3.0.4

3 months ago

3.0.3

3 months ago

3.0.2

3 months ago

3.0.1

3 months ago

3.0.5

3 months ago

3.0.0

3 months ago

2.6.5

3 months ago

2.6.7

3 months ago

2.6.6

3 months ago

2.6.4

3 months ago

2.6.1

4 months ago

2.6.0

4 months ago

2.6.3

4 months ago

2.6.2

4 months ago

2.5.24

4 months ago

2.5.22

4 months ago

2.5.23

4 months ago

2.5.21

5 months ago

2.5.20

5 months ago

2.5.18

6 months ago

2.5.19

6 months ago

2.2.1

11 months ago

2.2.0

11 months ago

2.4.1

10 months ago

2.2.3

11 months ago

2.4.0

10 months ago

2.2.2

11 months ago

2.4.3

10 months ago

2.2.13

10 months ago

2.2.5

11 months ago

2.4.2

10 months ago

2.2.4

11 months ago

2.4.5

10 months ago

2.2.11

11 months ago

2.2.7

11 months ago

2.4.4

10 months ago

2.2.12

10 months ago

2.2.6

11 months ago

2.2.10

11 months ago

2.5.6

9 months ago

2.3.8

10 months ago

2.5.5

9 months ago

2.3.7

10 months ago

2.5.8

9 months ago

2.5.7

9 months ago

2.5.9

9 months ago

2.5.14

9 months ago

2.5.15

9 months ago

2.5.16

9 months ago

2.5.17

9 months ago

2.5.11

9 months ago

2.5.13

9 months ago

2.3.0

10 months ago

2.3.2

10 months ago

2.3.1

10 months ago

2.5.2

9 months ago

2.3.4

10 months ago

2.3.3

10 months ago

2.5.4

9 months ago

2.3.6

10 months ago

2.5.3

9 months ago

2.3.5

10 months ago

2.2.9

11 months ago

2.4.6

10 months ago

2.2.8

11 months ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago