dotnet / dotnet/docs-tools

[CleanRepo] remove-hops doesn't handle monikers in redirect file

Open
#349 7 comments 0 reactions 1 assignee Claimed by @gewarren View on GitHub
Dominant language
C#
Stars
27
Forks
43
Avg merge
13h 27m
Merged PRs (30d)
21

Description

CleanRepo doesn't handle monikered redirects well. The following causes a "same key" error when there's another redirect with the same source_path but a different moniker value (vs-2022):

```json
{
"source_path": "docs/install/visual-studio-build-numbers-and-release-dates.md",
"redirect_url": "/visualstudio/releases/2019/history#release-dates-and-build-numbers",
"redirect_document_id": false,
"monikers": [
"vs-2019"
]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.