Skip to content

Commit 88fe1d1

Browse files
authored
Merge pull request #667 from arvinxx/beta
fix: parse UCS-4 unicode emoji
2 parents 065a93f + 78f562e commit 88fe1d1

35 files changed

+270
-59
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Here are some packages for gitmoji commit workflow
6767
| [commitlint-plugin-gitmoji](packages/commitlint-plugin) | [![NPM version][plugin-image]][plugin-url] | a commitlint plugin to add gitmoji check rule |
6868
| [@gitmoji/parser-opts](./packages/parser-opts) | [![NPM version][parser-image]][parser-url] | a shareable parser options for gitmoji styles commit |
6969
| [@gitmoji/commit-types](./packages/commit-types) | [![NPM version][types-image]][types-url] | gitmoji styles commit types |
70+
| [@gitmoji/gitmoji-regex](./packages/gitmoji-regex) | [![NPM version][regex-image]][regex-url] | a gitmoji regex |
7071

7172
<!-- npm url -->
7273

@@ -76,6 +77,8 @@ Here are some packages for gitmoji commit workflow
7677
[parser-url]: http://npmjs.org/package/@gitmoji/parser-opts
7778
[types-image]: http://img.shields.io/npm/v/@gitmoji/commit-types.svg?style=flat-square&color=deepgreen&label=latest
7879
[types-url]: http://npmjs.org/package/@gitmoji/commit-types
80+
[regex-image]: http://img.shields.io/npm/v/@gitmoji/gitmoji-regex.svg?style=flat-square&color=deepgreen&label=latest
81+
[regex-url]: http://npmjs.org/package/@gitmoji/gitmoji-regex
7982

8083
## About this Repo
8184

commitlint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module.exports = {
22
extends: ['./packages/commitlint-config/lib/index.js'],
3+
rules: {
4+
'footer-leading-blank': [0, 'never'],
5+
'header-max-length': [0, 'never'],
6+
},
37
};

jest.config.base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const config: Config.InitialOptions = {
1414
...base.moduleNameMapper,
1515
'commitlint-plugin-gitmoji': '<rootDir>/packages/commitlint-plugin/src',
1616
'@gitmoji/parser-opts': '<rootDir>/packages/parser-opts/src',
17+
'@gitmoji/gitmoji-regex': '<rootDir>/packages/gitmoji-regex/src',
1718
'@gitmoji/commit-types': '<rootDir>/packages/commit-types/src',
1819
},
1920
rootDir: path.resolve(__dirname, '.'),

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
"lint-staged": "^13",
5757
"multi-semantic-release": "^3",
5858
"prettier": "^2.2.1",
59+
"prettier-plugin-organize-imports": "^3",
60+
"prettier-plugin-packagejson": "^2",
5961
"semantic-release": "^19.0.5",
6062
"ts-jest": "^29",
6163
"ts-node": "^10",

packages/changelog/CHANGELOG.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
# Changelog
22

3-
## conventional-changelog-gitmoji-config [1.4.4](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2022-10-09)
4-
3+
## conventional-changelog-gitmoji-config [1.4.5-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2023-02-11)
54

5+
### Dependencies
66

7+
- **@gitmoji/parser-opts:** upgraded to 1.4.0-beta.2
78

9+
## conventional-changelog-gitmoji-config [1.4.5-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2023-02-11)
810

911
### Dependencies
1012

11-
* **@gitmoji/parser-opts:** upgraded to 1.3.1
12-
13-
## conventional-changelog-gitmoji-config [1.4.4-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2022-10-09)
13+
- **@gitmoji/parser-opts:** upgraded to 1.4.0-beta.1
1414

15+
## conventional-changelog-gitmoji-config [1.4.4](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2022-10-09)
1516

17+
### Dependencies
1618

19+
- **@gitmoji/parser-opts:** upgraded to 1.3.1
1720

21+
## conventional-changelog-gitmoji-config [1.4.4-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2022-10-09)
1822

1923
### Dependencies
2024

21-
* **@gitmoji/parser-opts:** upgraded to 1.3.1-beta.1
25+
- **@gitmoji/parser-opts:** upgraded to 1.3.1-beta.1
2226

2327
## conventional-changelog-gitmoji-config [1.4.3](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2021-03-12)
2428

25-
2629
### 🐛 Bug Fixes
2730

28-
* fix error when there is no changelog config ([1ec76ee](https://github.com/arvinxx/gitmoji-commit-workflow/commit/1ec76ee))
31+
- fix error when there is no changelog config ([1ec76ee](https://github.com/arvinxx/gitmoji-commit-workflow/commit/1ec76ee))
2932

3033
## conventional-changelog-gitmoji-config [1.4.2](https://github.com/arvinxx/gitmoji-commit-workflow/compare/conventional-changelog-gitmoji-config@[email protected]) (2021-03-06)
3134

packages/changelog/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "conventional-changelog-gitmoji-config",
3-
"version": "1.4.4",
3+
"version": "1.4.5-beta.1",
44
"description": "a gitmoji commit style presets for conventional changelog",
55
"keywords": [
66
"conventional-changelog",
@@ -32,7 +32,7 @@
3232
},
3333
"dependencies": {
3434
"@gitmoji/commit-types": "1.1.5",
35-
"@gitmoji/parser-opts": "1.3.1",
35+
"@gitmoji/parser-opts": "1.4.0-beta.2",
3636
"cosmiconfig": "^7.0.0"
3737
},
3838
"devDependencies": {

packages/commitlint-config/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
# commitlint-config-gitmoji [2.3.0-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/commitlint-config-gitmoji@[email protected]) (2023-02-11)
4+
5+
### ✨ Features
6+
7+
- support UCS-4 emoji unicode ([006d8e4](https://github.com/arvinxx/gitmoji-commit-workflow/commit/006d8e4))
8+
9+
### Dependencies
10+
11+
- **@gitmoji/parser-opts:** upgraded to 1.4.0-beta.2
12+
13+
## commitlint-config-gitmoji [2.2.12-beta.2](https://github.com/arvinxx/gitmoji-commit-workflow/compare/commitlint-config-gitmoji@[email protected]) (2023-02-11)
14+
15+
### Dependencies
16+
17+
- **@gitmoji/parser-opts:** upgraded to 1.4.0-beta.1
18+
- **commitlint-plugin-gitmoji:** upgraded to 2.2.6-beta.1
19+
320
## commitlint-config-gitmoji [2.2.11](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.11) (2023-02-10)
421

522
### Dependencies

packages/commitlint-config/package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint-config-gitmoji",
3-
"version": "2.2.11",
3+
"version": "2.3.0-beta.1",
44
"description": "shareable commitlint config enforcing gitmoji commit message",
55
"keywords": [
66
"commitlint",
@@ -22,16 +22,19 @@
2222
],
2323
"scripts": {
2424
"build": "father build",
25-
"clean": "rm -rf es lib dist build coverage src/.umi* .eslintcache",
25+
"clean": "rm -rf es lib dist build coverage .eslintcache",
2626
"cov": "jest --coverage",
2727
"start": "father dev",
2828
"test": "jest"
2929
},
3030
"dependencies": {
3131
"@commitlint/types": "^17",
3232
"@gitmoji/commit-types": "1.1.5",
33-
"@gitmoji/parser-opts": "1.3.1",
34-
"commitlint-plugin-gitmoji": "2.2.5"
33+
"@gitmoji/parser-opts": "1.4.0-beta.2",
34+
"commitlint-plugin-gitmoji": "2.2.6-beta.1"
35+
},
36+
"devDependencies": {
37+
"@commitlint/lint": "^17"
3538
},
3639
"publishConfig": {
3740
"access": "public",

packages/commitlint-config/src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { type Plugin, RuleConfigSeverity } from '@commitlint/types';
21
import type { LintOptions, QualifiedRules } from '@commitlint/types';
3-
4-
import gitmojiPlugin from 'commitlint-plugin-gitmoji';
5-
import gitmojiParserOpts from '@gitmoji/parser-opts';
2+
import { RuleConfigSeverity, type Plugin } from '@commitlint/types';
63
import commitTypes from '@gitmoji/commit-types';
4+
import gitmojiParserOpts from '@gitmoji/parser-opts';
5+
import gitmojiPlugin from 'commitlint-plugin-gitmoji';
76

87
const { Error } = RuleConfigSeverity;
98

packages/commitlint-config/test/index.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,10 @@ describe('valid commit', () => {
8181

8282
expect(valid).toBeTruthy();
8383
});
84+
85+
it('$ ⚡️ chore(scope): test -> passed', async () => {
86+
const result = await lint('⚡️ chore(scope): test');
87+
88+
expect(result.valid).toBeTruthy();
89+
});
8490
});

0 commit comments

Comments
 (0)