GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: update lint-commit-msg rules (#4167) · present/vant@66f3aac

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • PULL_REQUEST_TEMPLATE.md
  • build
    • lint-commit-msg.js
    • release.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/PULL_REQUEST_TEMPLATE.md‎

Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
Example:
1414

15-
- [fix] Button: incorrect style
16-
- [feat] Button: add color prop
17-
- [dosc] Button: fix typo
15+
- fix(Button): incorrect style
16+
- feat(Button): incorrect style
17+
- docs(Button): fix typo
1818

1919
Allowed Types:
2020

Collapse file

‎build/lint-commit-msg.js‎

Copy file name to clipboardExpand all lines: build/lint-commit-msg.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const signale = require('signale');
44
const gitParams = process.env.HUSKY_GIT_PARAMS;
55
const commitMsg = fs.readFileSync(gitParams, 'utf-8').trim();
66

7-
const commitRE = /^(revert: )?\[(fix|feat|docs|perf|test|types|build|chore|refactor|breaking change)\].{1,50}/;
7+
const commitRE = /^(revert: )?(fix|feat|docs|perf|test|types|build|chore|refactor|breaking change)(\(.+\))?: .{1,50}/;
88

99
if (!commitRE.test(commitMsg)) {
1010
signale.error(`Error: invalid commit message format.
@@ -13,9 +13,9 @@ Proper commit message format is required for automated changelog generation.
1313
1414
Examples:
1515
16-
[fix] Button: incorrect style
17-
[feat] Button: add color prop
18-
[dosc] Button: fix typo
16+
- fix(Button): incorrect style
17+
- feat(Button): incorrect style
18+
- docs(Button): fix typo
1919
2020
Allowed Types:
2121
Collapse file

‎build/release.sh‎

Copy file name to clipboardExpand all lines: build/release.sh
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ then
1313

1414
# commit
1515
git tag v$VERSION
16-
git commit -am "[build] release: $VERSION"
16+
git commit -am "build: release $VERSION"
1717

1818
# publish
1919
git push origin dev

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.