fix(dev-infra): make scopes for `test` and `refactor` commit types optional (#41486)
As the `test` and `refactor` commit types are not used in release notes and there are solid use cases for having multiple scopes/scopeless uses of these types, they are made to be optional instead of required on commits. PR Close #41486
This commit is contained in:
parent
c550bad49d
commit
f98f379dd8
|
@ -92,7 +92,7 @@ export const COMMIT_TYPES: {[key: string]: CommitType} = {
|
|||
refactor: {
|
||||
name: 'refactor',
|
||||
description: 'Refactor without any change in functionality or API (includes style changes)',
|
||||
scope: ScopeRequirement.Required,
|
||||
scope: ScopeRequirement.Optional,
|
||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||
},
|
||||
release: {
|
||||
|
@ -104,7 +104,7 @@ export const COMMIT_TYPES: {[key: string]: CommitType} = {
|
|||
test: {
|
||||
name: 'test',
|
||||
description: 'Improvements or corrections made to the project\'s test suite',
|
||||
scope: ScopeRequirement.Required,
|
||||
scope: ScopeRequirement.Optional,
|
||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1716,7 +1716,7 @@ const COMMIT_TYPES = {
|
|||
refactor: {
|
||||
name: 'refactor',
|
||||
description: 'Refactor without any change in functionality or API (includes style changes)',
|
||||
scope: ScopeRequirement.Required,
|
||||
scope: ScopeRequirement.Optional,
|
||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||
},
|
||||
release: {
|
||||
|
@ -1728,7 +1728,7 @@ const COMMIT_TYPES = {
|
|||
test: {
|
||||
name: 'test',
|
||||
description: 'Improvements or corrections made to the project\'s test suite',
|
||||
scope: ScopeRequirement.Required,
|
||||
scope: ScopeRequirement.Optional,
|
||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue