Skip to content

Commit a36d74c

Browse files
committed
Add ExcludeDefaultWorkItemTypes option to TfsWorkItemTypeValidatorTool configuration
1 parent 08a7e45 commit a36d74c

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

docs/data/classes/reference.tools.tfsworkitemtypevalidatortool.yaml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,8 @@ configurationSamples:
1111
"CommonTools": {
1212
"TfsWorkItemTypeValidatorTool": {
1313
"Enabled": "True",
14-
"ExcludeWorkItemtypes": [
15-
"Code Review Request",
16-
"Code Review Response",
17-
"Feedback Request",
18-
"Feedback Response",
19-
"Shared Parameter",
20-
"Shared Steps"
21-
],
14+
"ExcludeDefaultWorkItemTypes": "True",
15+
"ExcludeWorkItemtypes": null,
2216
"FixedTargetFields": null,
2317
"SourceFieldMappings": null
2418
}
@@ -60,14 +54,8 @@ configurationSamples:
6054
"$type": "TfsWorkItemTypeValidatorToolOptions",
6155
"Enabled": true,
6256
"IncludeWorkItemtypes": [],
63-
"ExcludeWorkItemtypes": [
64-
"Code Review Request",
65-
"Code Review Response",
66-
"Feedback Request",
67-
"Feedback Response",
68-
"Shared Parameter",
69-
"Shared Steps"
70-
],
57+
"ExcludeWorkItemtypes": [],
58+
"ExcludeDefaultWorkItemTypes": true,
7159
"SourceFieldMappings": {
7260
"User Story": {
7361
"Microsoft.VSTS.Common.Prirucka": "Custom.Prirucka"
@@ -92,6 +80,15 @@ options:
9280
defaultValue: true
9381
isRequired: false
9482
dotNetType: System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
83+
- parameterName: ExcludeDefaultWorkItemTypes
84+
type: Boolean
85+
description: >-
86+
If `true`, some work item types will be automatically added to `ExcludeWorkItemtypes` list.
87+
Work item types excluded by default are: Code Review Request, Code Review Response, Feedback Request,
88+
Feedback Response, Shared Parameter, Shared Steps.
89+
defaultValue: missing XML code comments
90+
isRequired: false
91+
dotNetType: System.Boolean, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
9592
- parameterName: ExcludeWorkItemtypes
9693
type: List
9794
description: List of work item types which will be excluded from validation.

docs/static/schema/configuration.schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,6 +2468,10 @@
24682468
"type": "boolean",
24692469
"default": "true"
24702470
},
2471+
"ExcludeDefaultWorkItemTypes": {
2472+
"description": "If `true`, some work item types will be automatically added to `ExcludeWorkItemtypes` list.\r\n Work item types excluded by default are: Code Review Request, Code Review Response, Feedback Request,\r\n Feedback Response, Shared Parameter, Shared Steps.",
2473+
"type": "boolean"
2474+
},
24712475
"ExcludeWorkItemtypes": {
24722476
"description": "List of work item types which will be excluded from validation.",
24732477
"type": "array",

docs/static/schema/schema.tools.tfsworkitemtypevalidatortool.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"type": "boolean",
1111
"default": "true"
1212
},
13+
"ExcludeDefaultWorkItemTypes": {
14+
"description": "If `true`, some work item types will be automatically added to `ExcludeWorkItemtypes` list.\r\n Work item types excluded by default are: Code Review Request, Code Review Response, Feedback Request,\r\n Feedback Response, Shared Parameter, Shared Steps.",
15+
"type": "boolean"
16+
},
1317
"ExcludeWorkItemtypes": {
1418
"description": "List of work item types which will be excluded from validation.",
1519
"type": "array"

0 commit comments

Comments
 (0)