Skip to content

Commit 2eaf7b1

Browse files
committed
🐛 fix(powershell): change error handling in Get-DiscussionId script
- replace return with exit 1 for better error signaling when documentation category is not found 📝 docs(config): update configuration documentation with discussion IDs - add discussionId to config, config-wizard, schema, and processors documents - ensure consistency and traceability in documentation ✅ test(scripts): add new test scripts for categories and permissions - introduce test-categories.ps1 and test-github-permissions.ps1 as placeholders for future test implementations
1 parent 348b5b3 commit 2eaf7b1

File tree

8 files changed

+35
-26
lines changed

8 files changed

+35
-26
lines changed

.powershell/docs/Get-DiscussionId.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ function Find-OrCreateDiscussion {
529529
if (-not $docCategory) {
530530
Write-ErrorLog "Documentation category '$GitHubDiscussionCategory' not found"
531531
Write-InformationLog "Available categories: $($categories.name -join ', ')"
532-
return $null
532+
exit 1
533533
}
534534

535535
# Generate documentation URL

docs/content/docs/config/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ description: |
55
short_title: Configuration
66
weight: 50
77
date: 2025-06-24T12:07:31Z
8+
discussionId: 2904
9+
810
---
11+

docs/content/docs/config/config-wizard/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ short_title: Config Wizard
44
description: Build your Azure DevOps Migration Tools configuration with our interactive step-by-step wizard supporting three migration type architectures
55
weight: 50
66
date: 2025-06-26T12:00:00Z
7-
discussionId:
7+
discussionId: 2902
88
aliases:
9-
- /config-wizard/
10-
- /wizard/
11-
- /configure/
9+
- /config-wizard/
10+
- /wizard/
11+
- /configure/
1212
layout: config-wizard
1313
cascade:
14-
- build:
15-
list: never
16-
render: never
17-
target:
18-
environment: production
19-
---
14+
- build:
15+
list: never
16+
render: never
17+
target:
18+
environment: production
2019

20+
---
2121
Use this interactive wizard to build your Azure DevOps Migration Tools configuration. The wizard supports three primary migration types:
2222

2323
- **Work Items**: Standard work item migration with pre-configured TfsWorkItemEndpoint and TfsWorkItemMigrationProcessor

docs/content/docs/config/schema/index.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
---
2-
title: "JSON Schemas"
3-
description: "JSON Schema definitions for Azure DevOps Migration Tools configuration"
2+
title: JSON Schemas
3+
description: JSON Schema definitions for Azure DevOps Migration Tools configuration
44
weight: 10
5-
outputs: ["html", "schema-catalog"]
5+
outputs:
6+
- html
7+
- schema-catalog
68
aliases:
7-
- /schema/
8-
---
9+
- /schema/
10+
date: 2025-07-23T09:41:21Z
11+
discussionId: 2901
912

13+
---
1014
The Azure DevOps Migration Tools provide JSON Schema definitions for configuration validation and IDE support.
1115

1216
## Main Configuration Schema

docs/content/docs/reference/processors/tfs-workitemtype-validator-processor/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ description: Validates Work Item Types against a set of rules. Does not migrate
44
dataFile: reference.processors.tfsworkitemtypevalidatorprocessor.yaml
55
slug: tfs-workitem-type-validator-processor
66
aliases:
7-
- /docs/Reference/Processors/TfsWorkItemTypeValidatorProcessor
8-
- /Reference/Processors/TfsWorkItemTypeValidatorProcessor
9-
- /learn/azure-devops-migration-tools/Reference/Processors/TfsWorkItemTypeValidatorProcessor
10-
- /learn/azure-devops-migration-tools/Reference/Processors/TfsWorkItemTypeValidatorProcessor/index.md
7+
- /docs/Reference/Processors/TfsWorkItemTypeValidatorProcessor
8+
- /Reference/Processors/TfsWorkItemTypeValidatorProcessor
9+
- /learn/azure-devops-migration-tools/Reference/Processors/TfsWorkItemTypeValidatorProcessor
10+
- /learn/azure-devops-migration-tools/Reference/Processors/TfsWorkItemTypeValidatorProcessor/index.md
1111
date: 2025-06-24T12:07:31Z
12-
---
12+
discussionId: 2905
1313

14+
---
1415
{{< class-description >}}
1516

1617
## Options

docs/content/docs/reference/tools/tfs-workitemtype-validator-tool/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ dataFile: reference.tools.tfsworkitemtypevalidatortool.yaml
55
schemaFile: schema.tools.tfsworkitemtypevalidatortool.json
66
slug: work-item-type-validator-tool
77
aliases:
8-
- /docs/Reference/Tools/WorkItemTypeValidatorTool
9-
- /Reference/Tools/WorkItemTypeValidatorTool
10-
- /learn/azure-devops-migration-tools/Reference/Tools/WorkItemTypeValidatorTool
11-
- /learn/azure-devops-migration-tools/Reference/Tools/WorkItemTypeMappingTool/index.md
8+
- /docs/Reference/Tools/WorkItemTypeValidatorTool
9+
- /Reference/Tools/WorkItemTypeValidatorTool
10+
- /learn/azure-devops-migration-tools/Reference/Tools/WorkItemTypeValidatorTool
11+
- /learn/azure-devops-migration-tools/Reference/Tools/WorkItemTypeMappingTool/index.md
1212
date: 2025-06-24T12:07:31Z
13-
---
13+
discussionId: 2903
1414

15+
---
1516
{{< class-description >}}
1617

1718
## Options

test-categories.ps1

Whitespace-only changes.

test-github-permissions.ps1

Whitespace-only changes.

0 commit comments

Comments
 (0)