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: {
|
refactor: {
|
||||||
name: 'refactor',
|
name: 'refactor',
|
||||||
description: 'Refactor without any change in functionality or API (includes style changes)',
|
description: 'Refactor without any change in functionality or API (includes style changes)',
|
||||||
scope: ScopeRequirement.Required,
|
scope: ScopeRequirement.Optional,
|
||||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||||
},
|
},
|
||||||
release: {
|
release: {
|
||||||
|
@ -104,7 +104,7 @@ export const COMMIT_TYPES: {[key: string]: CommitType} = {
|
||||||
test: {
|
test: {
|
||||||
name: 'test',
|
name: 'test',
|
||||||
description: 'Improvements or corrections made to the project\'s test suite',
|
description: 'Improvements or corrections made to the project\'s test suite',
|
||||||
scope: ScopeRequirement.Required,
|
scope: ScopeRequirement.Optional,
|
||||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1716,7 +1716,7 @@ const COMMIT_TYPES = {
|
||||||
refactor: {
|
refactor: {
|
||||||
name: 'refactor',
|
name: 'refactor',
|
||||||
description: 'Refactor without any change in functionality or API (includes style changes)',
|
description: 'Refactor without any change in functionality or API (includes style changes)',
|
||||||
scope: ScopeRequirement.Required,
|
scope: ScopeRequirement.Optional,
|
||||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||||
},
|
},
|
||||||
release: {
|
release: {
|
||||||
|
@ -1728,7 +1728,7 @@ const COMMIT_TYPES = {
|
||||||
test: {
|
test: {
|
||||||
name: 'test',
|
name: 'test',
|
||||||
description: 'Improvements or corrections made to the project\'s test suite',
|
description: 'Improvements or corrections made to the project\'s test suite',
|
||||||
scope: ScopeRequirement.Required,
|
scope: ScopeRequirement.Optional,
|
||||||
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
releaseNotesLevel: ReleaseNotesLevel.Hidden,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue