Restructure repository as monorepo for PSDocs ecosystem consolidation#407
Draft
Restructure repository as monorepo for PSDocs ecosystem consolidation#407
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR transforms PSDocs.Azure into a monorepo consolidating the complete PSDocs ecosystem:
microsoft/PSDocs)microsoft/PSDocs-vscode)How to Review
build.ps1,.github/workflows/*.ymlpackages/psdocs-azure/pipeline.build.ps1.github/skills/*.mdpackages/psdocs/,packages/vscode-extension/Skip These (Imported via git subtree)
packages/psdocs/**- Imported from microsoft/PSDocspackages/vscode-extension/**(except workflow changes) - Imported from microsoft/PSDocs-vscodeChanges
Repository Structure
Packages
VS Code Extension CI/CD (Migrated from Azure DevOps)
.azure-pipelines/folderGitHub Copilot Skills
monorepo-code-reviewpowershell-csharp-expertdevops-builddocumentationPost-Merge Setup
VSCE_PATfor VS Code MarketplacereleaseenvironmentSee
MONOREPO_MIGRATION.mdfor complete details.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
www.powershellgallery.com/usr/bin/pwsh pwsh ./build.ps1 -Package psdocs-azure -Build(dns block)/usr/bin/pwsh pwsh -Command Get-PSRepository(dns block)/usr/bin/pwsh pwsh ./build.ps1 -Package psdocs-azure -Build ' --output-dir /tmp/playwright-logs --allowed-origins 'localhost;localhost:*;127.0.0.1;127.0.0.1git(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Monorepo Migration: Consolidate PSDocs Repositories
Objective
Restructure the Azure/PSDocs.Azure repository to prepare it as the destination monorepo for consolidating:
Important Note
This PR creates the monorepo folder structure and CI/CD infrastructure. The actual content from
microsoft/PSDocsandmicrosoft/PSDocs-vscodewill need to be added manually using git subtree commands after this PR is merged, as that requires git history manipulation that cannot be done through file changes alone.Changes Required
1. Create New Directory Structure
Create the following folder structure:
2. Move Existing PSDocs.Azure Content
Move the following to
packages/psdocs-azure/:src/→packages/psdocs-azure/src/tests/→packages/psdocs-azure/tests/templates/→packages/psdocs-azure/templates/examples/→packages/psdocs-azure/examples/PSDocs.Azure.sln→packages/psdocs-azure/PSDocs.Azure.slnpipeline.build.ps1→packages/psdocs-azure/pipeline.build.ps1modules.json→packages/psdocs-azure/modules.jsonps-docs.yaml→packages/psdocs-azure/ps-docs.yamlps-project.yaml→packages/psdocs-azure/ps-project.yamlps-rule.yaml→packages/psdocs-azure/ps-rule.yamlMove documentation:
docs/→docs/psdocs-azure/3. Create GitHub Actions Workflows
Create
.github/workflows/ci.yml: