@govbr-ds/commit-types 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/package.json +29 -0
- package/src/index.cjs +106 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 SERPRO
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@govbr-ds/commit-types",
|
|
3
|
+
"version": "5.0.0",
|
|
4
|
+
"description": "Tipos de commit e impacto de release compartilhados pelos projetos GovBR-DS",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"govbr-ds",
|
|
7
|
+
"conventional-commits",
|
|
8
|
+
"semantic-release",
|
|
9
|
+
"nx-release"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://gov.br/ds/",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+ssh://git@gitlab.com/govbr-ds/tools/govbr-ds-config-tools.git",
|
|
15
|
+
"directory": "packages/commit-types"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": "SERPRO (http://serpro.gov.br/)",
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"main": "src/index.cjs",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./src/index.cjs"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"src"
|
|
28
|
+
]
|
|
29
|
+
}
|
package/src/index.cjs
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
const commitTypes = [
|
|
2
|
+
{
|
|
3
|
+
value: 'build',
|
|
4
|
+
description: 'alterações no processo de build, empacotamento ou dependências de desenvolvimento',
|
|
5
|
+
semverBump: 'none',
|
|
6
|
+
changelog: false,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
value: 'bump',
|
|
10
|
+
description: 'alteração manual da versão do projeto ou de seus pacotes',
|
|
11
|
+
semverBump: 'none',
|
|
12
|
+
changelog: { title: '🆙 ATUALIZAÇÃO DE VERSÃO' },
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
value: 'chore',
|
|
16
|
+
description: 'tarefas internas de manutenção que não alteram o comportamento do produto',
|
|
17
|
+
semverBump: 'none',
|
|
18
|
+
changelog: false,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
value: 'ci',
|
|
22
|
+
description: 'alterações em pipelines, jobs, workflows ou outras automações de integração contínua',
|
|
23
|
+
semverBump: 'none',
|
|
24
|
+
changelog: false,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: 'deprecated',
|
|
28
|
+
description: 'marcação de uma API, funcionalidade ou recurso como obsoleto',
|
|
29
|
+
semverBump: 'none',
|
|
30
|
+
changelog: { title: '⚠️ RECURSOS DESCONTINUADOS' },
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: 'docs',
|
|
34
|
+
description: 'criação ou atualização de documentação, exemplos, tutoriais e guias',
|
|
35
|
+
semverBump: 'patch',
|
|
36
|
+
changelog: { title: '📚 DOCUMENTAÇÃO' },
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
value: 'feat',
|
|
40
|
+
description: 'adição de uma nova funcionalidade ou comportamento compatível com versões anteriores',
|
|
41
|
+
semverBump: 'minor',
|
|
42
|
+
changelog: { title: '✨ NOVIDADES' },
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
value: 'fix',
|
|
46
|
+
description: 'correção de erro, falha ou comportamento diferente do esperado',
|
|
47
|
+
semverBump: 'patch',
|
|
48
|
+
changelog: { title: '🐛 CORREÇÕES' },
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
value: 'lint',
|
|
52
|
+
description: 'ajustes de formatação, estilo ou análise estática sem alterar o comportamento do código',
|
|
53
|
+
semverBump: 'none',
|
|
54
|
+
changelog: false,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: 'ops',
|
|
58
|
+
description: 'tarefas operacionais relacionadas ao fluxo de design, desenvolvimento ou publicação',
|
|
59
|
+
semverBump: 'none',
|
|
60
|
+
changelog: false,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
value: 'perf',
|
|
64
|
+
description: 'melhoria de desempenho sem alteração incompatível da API pública',
|
|
65
|
+
semverBump: 'patch',
|
|
66
|
+
changelog: { title: '🚀 DESEMPENHO' },
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
value: 'refactor',
|
|
70
|
+
description: 'reestruturação interna do código sem alterar seu comportamento esperado',
|
|
71
|
+
semverBump: 'patch',
|
|
72
|
+
changelog: { title: '🔁 REFATORAÇÕES' },
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
value: 'removed',
|
|
76
|
+
description: 'remoção definitiva de uma API, funcionalidade ou recurso público',
|
|
77
|
+
semverBump: 'major',
|
|
78
|
+
changelog: { title: '🚧 REMOÇÕES' },
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
value: 'revert',
|
|
82
|
+
description: 'reversão total ou parcial de uma alteração realizada anteriormente',
|
|
83
|
+
semverBump: 'minor',
|
|
84
|
+
changelog: { title: '⏪ REVERSÕES' },
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
value: 'site',
|
|
88
|
+
description: 'alterações no site ou em conteúdos publicados separadamente dos pacotes',
|
|
89
|
+
semverBump: 'none',
|
|
90
|
+
changelog: false,
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
value: 'test',
|
|
94
|
+
description: 'criação, atualização ou correção de testes automatizados',
|
|
95
|
+
semverBump: 'none',
|
|
96
|
+
changelog: false,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
value: 'wip',
|
|
100
|
+
description: 'trabalho ainda incompleto ou em andamento, sem intenção de publicação',
|
|
101
|
+
semverBump: 'none',
|
|
102
|
+
changelog: false,
|
|
103
|
+
},
|
|
104
|
+
]
|
|
105
|
+
|
|
106
|
+
module.exports = { commitTypes }
|